More with "for" syntax error


#1



my code:

start_list = [5, 3, 1, 2, 4]
square_list = []

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


what is wrong? see attachment


Replace this line with your code.


#2

at the end of your for loop there should be a colon:

for x in y:

the colon (:) is missing in your case


#3

thanks! thanks a lot !:slight_smile: