Tell me please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Tell me please

try: print(1) print(10 / 0) except ZeroDivisionError: print(unknown_var) finally: print("This is executed last") Output- 1 This is executed last But uunknown-var is not printed why,1is printed without collans

19th Sep 2019, 10:11 AM
naga m
naga m - avatar
1 Answer
+ 2
no variable named 'unknown_var' So, it prints 1 then "This is executed last"
19th Sep 2019, 10:16 AM
Sousou
Sousou - avatar