12/12 What is wrong here?


#1

I have tried this code multiple times and I cannot see what is wrong with it. The code runs but won't print the first value. What am I missing?

n = [3, 5, 7]

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

print_list(n)


#2

return exits the function, so that can only be done once. Did you mean to print instead?


#3

In the words of Homer Simpson "Doh!"

Thank you!