logo

Crowdly

Given the following program, what will be printed if the user enters 6 and 0 ...

✅ 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...")

More questions like this

Want instant access to all verified answers on moodle.nu.edu.kz?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!