8 lines
206 B
Python
8 lines
206 B
Python
try:
|
||
val = int(input('Bir değer giriniz:'))
|
||
print(val * val)
|
||
except TypeError:
|
||
print('Girilen değerin türü uygun değil!')
|
||
except:
|
||
print('Diğer bir nedenden dolayı exception oluştu')
|