Page 1 of 1

Exam 3 / 12. Q12: Multiple Choice-Figure2 Saved D = {0:1, 2:3} S = input("Input something: ") try: float(s) # Line 1 X =

Posted: Thu May 05, 2022 1:59 pm
by answerhappygod
Exam 3 12 Q12 Multiple Choice Figure2 Saved D 0 1 2 3 S Input Input Something Try Float S Line 1 X 1
Exam 3 12 Q12 Multiple Choice Figure2 Saved D 0 1 2 3 S Input Input Something Try Float S Line 1 X 1 (740.82 KiB) Viewed 31 times
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