Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

try except python

try:
  print("I will try to print this line of code")
except ERROR_NAME:
  print(f"I will print this line of code if error {ERROR_NAME} is encountered")
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
6+2 =