+ 1
>>> 11 / 0 Traceback (most recent call last): File "<stdin>", line 1, in <module> ZeroDivisionError: division by zero
How
3 Réponses
+ 3
11/0 is undefined that's why you're getting that error.
Now Google a topic on exception handling with python.
https://www.sololearn.com/Discuss/2430393/?ref=app
+ 3
That's because you are trying to divide something by zero and system don't know how to do it.
Either avoid division by zero or make use of " try....except " to handle this error.
+ 2
If you try to divide a number by 0 then that error occurs,you can use try except statements for handling errors