Printing out a list item by item in a function


#1

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?


#2

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


#3

oops! my bad....fixed it

thank you!!


#4