Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

try except finally python

try:
       # Some Code.... 

except:
       # optional block
       # Handling of exception (if required)

else:
       # execute if no exception

finally:
      # Some code .....(always executed)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #finally #python
ADD COMMENT
Topic
Name
6+9 =