More with 'for' not working my code?


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

for n in start_list
    square_list.append(n**2)

square_list.sort()

print square_list

This is my code and the console shows:

  File "python", line 4
    for n in start_list
                      ^
SyntaxError: invalid syntax

#2

Remember to open the loop block with a colon...

for n in start_list:
`