1try:
2 print("I will try to print this line of code")
3except ERROR_NAME:
4 print("I will print this line of code if error ERROR_NAME is encountered")
1try:
2 print("I will try to print this line of code")
3except:
4 print("I will print this line of code if an error is encountered")
5