What exception will be raised if we try to divide by 0?

Questions & AnswersCategory: PythonWhat exception will be raised if we try to divide by 0?
1 Answers
Lokesh Kumar Staff answered 2 years ago

b. ZeroDivisionError
 
Explanation:

ZeroDivisionError is raised when the second argument of a division or modulo operation is zero. The associated value is a string indicating the type of the operands and the operation.