10 lines
206 B
Python
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])
|