Printing out a list item by item in a function


Oops, try again: Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 2)

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

print print_list[n]

Where is the error?


why do you use square brackets here? And at function call? functions use parentheses


oops! my bad....fixed it

thank you!!