nested exception
This commit is contained in:
parent
d262380b86
commit
b18d81d2e2
20
python-temel/nested.exception.py
Normal file
20
python-temel/nested.exception.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
def foo():
|
||||
print('foo begins...')
|
||||
try:
|
||||
bar()
|
||||
except ValueError:
|
||||
print('yanlış değer')
|
||||
print('foo ends...')
|
||||
|
||||
|
||||
def bar():
|
||||
print('bar begins...')
|
||||
tar()
|
||||
print('bar ends...')
|
||||
|
||||
def tar():
|
||||
print('tar begins...')
|
||||
val = int(input('Bir değer giriniz:'))
|
||||
print('tar ends...')
|
||||
|
||||
foo()
|
18
python-temel/nested.exception.py~
Normal file
18
python-temel/nested.exception.py~
Normal file
|
@ -0,0 +1,18 @@
|
|||
def foo():
|
||||
print('foo begins...')
|
||||
try:
|
||||
bar()
|
||||
except ValueError:
|
||||
print('yanlış değer')
|
||||
print('foo ends...')
|
||||
|
||||
|
||||
def bar():
|
||||
print('bar begins...')
|
||||
tar()
|
||||
print('bar ends...')
|
||||
|
||||
def tar():
|
||||
print('tar begins...')
|
||||
val = int(input('Bir değer giriniz:'))
|
||||
print('tar ends...')
|
Loading…
Reference in New Issue
Block a user