Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f():
- print("función")
- a = "algo"
- try:
- n = int(a)
- f()
- except ValueError:
- print("Error 1")
- print("-")
- a = "3"
- try:
- n = int(a)
- f()
- except ValueError:
- print("Error 2")
- # Salida
- # Error 1
- # -
- # función
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement