Question: What will the following code display? try: x = float 'abc 1 2 3 ' ) print ( x ) except IOError: print ( '
What will the following code display?
try:
float 'abc
print x
except IOError:
printThis code caused an IOError.
except ZeroDivisionError:
printThis code caused a ZeroDivisionError.
except:
printAn error happened.
printThe end.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
