python-CSD-kursu/python-temel/nested.exception.py
2023-08-16 16:20:39 +03:00

21 lines
332 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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()