I simply don't quite understand what the exercise program is really doing behind the scenes, because frankly, I reset the whole code, run it once to make it fail, and then left only the list on top, and it also gave the same results of
error: list index out of range
I also did this just for fun after completing the exercise and saw your predicament
n = [3, 5, 7]
def print_list (x):
for i in range(0, len(x)):
for i in range(0, len(n)):
and CA says: > Oops, try again. The body of your function should not contain any references to 'n'
Anyway, I think CA is looking for a certain type of coding for this particular exercise, otherwise it will overflow. I can't imagine why yet, unless there's someone more in the know to explain to me, or I get to see CA's particular coding for this exercise...