type error

This commit is contained in:
Mert Gör ☭ 2023-08-16 16:36:07 +03:00
parent b18d81d2e2
commit 546959c188
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,9 @@
def foo():
return 10 + 'ali'
try:
print('enters the try statement...')
foo()
except TypeError:
print('ValueError occurs...')
print('continues...')

View File

@ -0,0 +1,6 @@
def foo():
return 10 + 'ali'
try:
print('enters the try statement...')
foo()