Oops, try again. The body of your function should not contain any references to 'n'

Im not sure how else to go about this will someone help please?

n = [3, 5, 7]

for i in range(0, len(n)):
    print n[i]
def print_list(x):
    for i in range(0, len(x)):
        print x[i]



remove the for loop on line 3 and 4, it causes problems, the idea was to convert this code into a function, you seem to have build a new one, that is fine, but then delete the old for loop


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.