✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Given the following program, what will be printed if the user enters 6 and 0?
while True:
try:
a = int(input("Enter a number: "))
b = int(input("Enter a number: "))
c = a/b
except ZeroDivisionError:
print("b cannot be 0")
except ValueError:
print("Enter a number")
else:
print("result is ", c)
finally:
print("testing...")
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!