exception example 3
This commit is contained in:
parent
d321366dab
commit
24aafcdf45
1 changed files with 7 additions and 0 deletions
7
python-temel/exception.example.3.py
Normal file
7
python-temel/exception.example.3.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
def foo():
|
||||
return 10 + 'ali'
|
||||
try:
|
||||
foo()
|
||||
except:
|
||||
print('An exception occured...')
|
||||
print('Continues...')
|
Loading…
Reference in a new issue