Advertisement
Zsolti01

Try

Dec 1st, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. x=3.14
  2.  
  3. def exept_def():
  4.  
  5.     print("Ex")
  6.     x=1
  7.     f=2+2+x
  8.     print(f)
  9. try:
  10.     f=2+2+x
  11.  
  12. except TypeError:
  13.     exept_def()
  14. else:
  15.     print(f)
  16. finally:
  17.     print("End")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement