More with "for" infinite loop


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.


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


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