A
Q. What will be the output of the following Python code?
Code:
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
try:
return 1
finally:
return 2
k = foo()
print(k)
- Correct Answer - Option(B)
- Views: 27
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.