112k views
3 votes
Which type of error occurred in the following lines of code?

>>> print(9 / 0)

Traceback (most recent call last):

File " ", line 1, in

9/0

ZeroDivisionError: division by zero
Answer choices:
reserved word error

logical error

exception

syntax error

1 Answer

3 votes

Answer: Logical Error

The division by 0 is a logical error.

User Dilshod
by
4.8k points