Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

error handling in python

try:
  print(x)
except SyntaxError:
  print("There is a SyntaxError in your code")
except NameError:
  print("There is a NameError in your code")
except TypeError:
  print("There is a TypeError in your code")
Source by w3schools.com #
 
PREVIOUS NEXT
Tagged: #error #handling #python
ADD COMMENT
Topic
Name
7+7 =