Lists and functions 11/18


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

doesnt work? Someone please help me, i'm supposed to make it pop on the screen one by one by not using N in the function


#2

the range function takes in integer arguments not lists


#3

you can't pass the list in the range. We can only pass the integer in the range like range(0,len(x))


#4

Please format your post as I have done (select entire code block; press Ctrl+Shift+C) from next time. Thanks! :smile: