exception example
This commit is contained in:
parent
8583e8250a
commit
e5c86877c9
8
python-temel/exception.example.py
Normal file
8
python-temel/exception.example.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
while True:
|
||||
try:
|
||||
val = int(input('Bir değer giriniz:'))
|
||||
break
|
||||
except ValueError:
|
||||
print('Geçersiz bir değer girdiniz!')
|
||||
|
||||
print(val * val)
|
Loading…
Reference in New Issue
Block a user