start_list = [5, 3, 1, 2, 4]
square_list =
for number in start_list:
start_list.append(number**2)
start_list.sort()
print square_list
My indentation is correct, it changes for some reason
the first two lines underneath the for loop have 4 spaces
Anyways, I have no idea what to do, it says that the loop goes on forever, I don’t know what the lesson even wants me to do.
1 Like
mtf
#2
should be
for number in start_list:
square_list.append(number**2)
square_list.sort()
17 Likes
Oh, I get it, you need to append the numbers into the square list, thank you! 
1 Like
Thank you @mtf. your clear explanation helped me as well.
1 Like
Thanks @mtf…Your reply helped me too… 
1 Like
Thanks @mtf bro works good
u know i wrote the exact same thing u did and it was always wrong !!
until i copied and pasted!!
thank you! @mtf this is the only solution that works
mtf
split this topic
#11
I did the exact same thing.
thank you man!!! i cant do it i do know why
mtf
split this topic
#15