Error again


#1



Error : " The body of your function should not contain any references to 'n' "
I believe there is no reference to the list n in my function. Still it gives the error there is some connection to the list


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]
        
print_list(n)


#2

@bytepro39290,
And what happens
when you remove the comment

"""for i in range(0, len(n)):
    print n[i]"""

from your function.....


#3

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