Home ยป Programming Language (coding) ยป Python MCQs ยป What is the output of the following code? def foo(): try: print(1) finally: print(2) foo()What is the output of the following code? def foo(): try: print(1) finally: print(2) foo() Mr. Answer What is the output of the following code? def foo(): try: print(1) finally: print(2) foo() A. 1 2 B. 1 C. 2 D. none of the mentioned Correct Answer: Option A. 12 Upvote ๐ Take Part in Discussion: Cancel replyYour email address will not be published. Required fields are marked *Name * Email * Website Comment * Save my name, email, and website in this browser for the next time I comment. Solve : * 24 ⁄ 6 =