Exam 3 / 12. Q12: Multiple Choice-Figure2 Saved D = {0:1, 2:3} S = input("Input something: ") try: float(s) # Line 1 X =
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Exam 3 / 12. Q12: Multiple Choice-Figure2 Saved D = {0:1, 2:3} S = input("Input something: ") try: float(s) # Line 1 X =
Exam 3 / 12. Q12: Multiple Choice-Figure2 Saved D = {0:1, 2:3} S = input("Input something: ") try: float(s) # Line 1 X = y = int(s) z = D[y] except ValueError: print("Oops_1") except KeyError: print("Oops_3") else: print(x,y,z) finally: print("Finally Executed") # Line 4 What input (remember that input is of type str] will cause the code to reach Line 1 and for Line 1 to be executed without error ? 00 T 1.5' '2.0' None of the above # Line 2 # Line 3
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!