More with "for" infinite loop


#1



This code looks correct but when I try to save it, it keeps telling me that it's taking too long and perhaps is on infinite loop. Can anyone help with this? Thanks!


Replace this line with your code.


#2

you appending to the same list as you are looping over, this will given an infinity loop. You should append to square_list instead

also, for sorting no loop required


#3

Thanks, I fixed it and was able to pass this!


#4