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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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 =

Post 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 29 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply