-
-
Save uncoded-ro/40fe4939eac8cb8b1f9b0d6219dda6e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
a = [1, 2, 3] | |
print(a[3]) | |
except LookupError: | |
print("Index out of bound error.") | |
else: | |
print("Success!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment