type error 2
This commit is contained in:
parent
546959c188
commit
52113294ad
9
python-temel/type_error.2.py
Normal file
9
python-temel/type_error.2.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
def foo():
|
||||||
|
return 10 + 'ali'
|
||||||
|
try:
|
||||||
|
foo()
|
||||||
|
except ValueError:
|
||||||
|
print('ValueError occured...')
|
||||||
|
except TypeError:
|
||||||
|
print('TypeError occured...')
|
||||||
|
print('continues...')
|
8
python-temel/type_error.2.py~
Normal file
8
python-temel/type_error.2.py~
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
def foo():
|
||||||
|
return 10 + 'ali'
|
||||||
|
try:
|
||||||
|
foo()
|
||||||
|
except ValueError:
|
||||||
|
print('ValueError occured...')
|
||||||
|
except TypeError:
|
||||||
|
print('TypeError occured...')
|
Loading…
Reference in New Issue
Block a user