type error
This commit is contained in:
parent
b18d81d2e2
commit
546959c188
2 changed files with 15 additions and 0 deletions
9
python-temel/type_error.py
Normal file
9
python-temel/type_error.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
def foo():
|
||||
return 10 + 'ali'
|
||||
|
||||
try:
|
||||
print('enters the try statement...')
|
||||
foo()
|
||||
except TypeError:
|
||||
print('ValueError occurs...')
|
||||
print('continues...')
|
6
python-temel/type_error.py~
Normal file
6
python-temel/type_error.py~
Normal file
|
@ -0,0 +1,6 @@
|
|||
def foo():
|
||||
return 10 + 'ali'
|
||||
|
||||
try:
|
||||
print('enters the try statement...')
|
||||
foo()
|
Loading…
Reference in a new issue