More with 'for'


#1



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

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

print square_list

Continuing the discussion from More with 'for' #9:


#3

Thanks , i had some confusion regarding this. Appreciate the pointer.


#4

I like the answer. They don't write the question very well.