Vidyalelo
Python · Q33

Exception Handling in Python

Programming · Python · question 33

Q33

What will be the output of the following Python code? def foo(): try: print(1) finally: print(2) foo()

A.
1 2
Answer
B.
1
C.
2
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board