ZeroDivisionError Demo : Buildin Error « Language Basics « Python






ZeroDivisionError Demo

ZeroDivisionError Demo
try: 1/0
except ZeroDivisionError: 
   print "caught divide-by-0 attempt"


           
       

Related examples in the same category

1.Catch data type miss matchCatch data type miss match