type error
This commit is contained in:
parent
b18d81d2e2
commit
546959c188
|
@ -0,0 +1,9 @@
|
|||
def foo():
|
||||
return 10 + 'ali'
|
||||
|
||||
try:
|
||||
print('enters the try statement...')
|
||||
foo()
|
||||
except TypeError:
|
||||
print('ValueError occurs...')
|
||||
print('continues...')
|
|
@ -0,0 +1,6 @@
|
|||
def foo():
|
||||
return 10 + 'ali'
|
||||
|
||||
try:
|
||||
print('enters the try statement...')
|
||||
foo()
|
Loading…
Reference in New Issue