9. More with 'for'


#1

Ok, I'm stuck: What didn't I do right? Thanks in advance for the help.

start_list = [5, 3, 1, 2, 4]
square_list = []

for square_list in start_list:
print square_list **2 # Your code here!
square_list.sort()

print square_list


#2

Hello
so, first of all, square_list is an empty list into which you have to insert numbers from start_list and you have to square them.
After FOR you cannot use "square_list", I used simple 'number' so it's like
for number in start_list:
after that you need to add number after you square it into square_list. Check how to do it in lesson "Late Arrivals & List Length"

Hope everything is clear, English isn't my native languge ;/


#4

Thanks guys, it's working now. Love how quick the help is. I'm real new at this and I'm slowly getting the hang of it.


#6

thx it helps for me :slight_smile: