python-crash-course/Chapter_03/3-11_intentional_error.py
2025-01-22 12:32:29 -05:00

10 lines
206 B
Python

# Exercise 3-11 Inentional Error
# Learning Objective: Create and fix an error based on indexing a list.
myList = ['Zero', 'One', 'Two']
#produces error
#print(myList[3]);
#corrected
print(myList[-1])