More with 'for' HELP


Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: 'int' object has no attribute 'append

It would square the numbers.

Replace this line with your code. 
start_list = [5, 3, 1, 2, 4]
square_list = []

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


From what we can tell, this list is empty. Study you loop variables. The key variable is definitely not right, and the append statement is wrong as well. Don't try to sort inside the loop, either.


Thanks @mtf, I got it :smile: