Question : divide by zero error python exception handling
Answered by : aakash-yadav
try: print 1/0
except ZeroDivisionError: print "You can't divide by zero!"
Source : https://en.wikibooks.org/wiki/Python_Programming/Exceptions | Last Update : Fri, 05 Feb 21
Question : what error happens in python when i divide by zero
Answered by : nk
Python will display "ZeroDivisionError" if you divide something with zero
Source : | Last Update : Sun, 28 Jun 20