More with 'for' HELP


#1



https://www.codecademy.com/courses/python-beginner-en-pwmb1/1/6?curriculum_id=4f89dab3d788890003000096#


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)
    start_list.sort()
print square_list


#2

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.


#3

Thanks @mtf, I got it :smile:


#5