ArithmeticError

The built-in parent class of the errors raised by failed arithmetic, such as ZeroDivisionError.

In more detail

An except ArithmeticError clause catches a division by zero. It sits under Exception in the hierarchy, alongside LookupError, TypeError and ValueError.

Related terms

Taught in

References

Certification courses