1. Predict which lines fail
Predict the output Easy ✓ CompletedRead the code and type exactly what it prints. Then press Check to compare.
for divisor in [4, 0, 2.5]:
try:
print(20 / divisor)
except ZeroDivisionError:
print("cannot divide by", divisor)
print("done")/ always returns a float. Only the zero raises, and the loop keeps going after the except block.5.0
cannot divide by 0
8.0
done