44.8k views
3 votes
What type of error occurred?

20 / 0


SyntaxError

ValueError

TypeError

ZeroDivisionError

User Dimsuz
by
4.8k points

1 Answer

2 votes

Answer:

"Option 4: ZeroDivisionError" is the correct answer

Step-by-step explanation:

When we try to divide any number by zero in mathematics, the answer is infinity. Similarly, if we try to divide a number by zero in Python, the Python interpreter throws a "ZeroDivisionError" as the denominator or divisor cannot be a zero.

Hence,

"Option 4: ZeroDivisionError" is the correct answer

User Jamone
by
5.2k points