+ 1

>>> 11 / 0 Traceback (most recent call last): File "<stdin>", line 1, in <module> ZeroDivisionError: division by zero

How

5th Aug 2020, 7:56 AM
Nikita Sharma
3 odpowiedzi
+ 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
5th Aug 2020, 7:58 AM
minirkk
minirkk - avatar
+ 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.
5th Aug 2020, 8:00 AM
Arsenic
Arsenic - avatar
+ 2
If you try to divide a number by 0 then that error occurs,you can use try except statements for handling errors
5th Aug 2020, 8:00 AM
Abhay
Abhay - avatar