diff --git a/Chapter_03/3-11_intentionalError.py b/Chapter_03/3-11_intentionalError.py new file mode 100644 index 0000000..9864299 --- /dev/null +++ b/Chapter_03/3-11_intentionalError.py @@ -0,0 +1,9 @@ +# 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])