What will be the correct output of the following Python code?
class Error(Exception):
“"0..."
pass
class ValueTooSmallError(Error):
"."1uu"
pass
class ValueTooLargeError(Error):
m2"...
pass
number = 10
while True:
try:
i_num =10
if i_num < number:
raise ValueTooSmallError
elif i_num > number:
raise ValueTooLargeError
break
except ValueTooSmallError:
print("1")
printi)
except ValueTooLargeError:
print("1")
printi)
print("0")
Correct Answer:
o
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions