Advertisements
Advertisements
Question
What will be the output of the following Python code?
def foo():
try:
print(1)
finally:
print(2)
foo()
Options
1 2
1 2 3
2
none
MCQ
Solution
1 2
shaalaa.com
Introduction of Exception Handling in Python
Is there an error in this question or solution?