From 15f015f7d0666307c43e1be67f5bb3ff458ba632 Mon Sep 17 00:00:00 2001 From: cheeks <134818917+leftovertoast@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:34:37 -0500 Subject: [PATCH] completed 3-11 Intentional Error --- Chapter_03/3-11_intentionalError.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Chapter_03/3-11_intentionalError.py 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])