Wats wrong?


Replace this line with your code.


your loop iterator is numbers, which gives you access to each item in the list. But then you use number to append, why not use the iterator which contains each item from the list?


not getting ya?????????


your iterator (numbers) give you access to each item in your list. Then you want to get the square of each item in your list, but then you use number instead, which is undefined


i used numbers still showing error
start_list = [5, 3, 1, 2, 4]
square_list = []

for numbers in start_list:# Your code here!


print square_list


in your loop use numbers as iterator, so that is also what you should use when appending to start_list, but then you use number


"Don't use both 'numbers' and 'number'. Use one or the other, else it won't work."

Do you understand that? :wink:




are you really want to append to start_list instead of square_list


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