The first block of code I tried ran and I couldn't pass. I think it's because "n" was referenced in the
for loop, but changing the variables in the
i loop resulted in errors and for some reason the extra number of
After checking the hint I passed but I don't know where that extra number in the display came from or why my first attempt didn't work properly.
#Displays 3, 5, 7, 2 n = [3, 5, 7] for i in range(0, len(n)): print n[i] def print_list(x): print i print print_list(n) #Working code stuffs, displays 3, 5, 7 n = [3, 5, 7] def print_list(x): for i in range(0, len(x)): print x[i] print print_list(n)