Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

divide by zero error python exception handling

try:
    print 1/0
except ZeroDivisionError:
    print "You can't divide by zero!"
Source by en.wikibooks.org #
 
PREVIOUS NEXT
Tagged: #divide #error #python #exception #handling
ADD COMMENT
Topic
Name
6+9 =