More with 'for'


I am currently working on lesson 9 and it gives me the following error:

Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 5)

This is my code:

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

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


print square_list

Not sure what I am doing wrong here.

Currently messing with the formatting for this post, there is a tab under the for section.


Check your indentation within your for loop. Similar to If statements, subsequent lines should be indented.

Let me know if that helps.


Yeah the spacing is there, just cant seem to get it to show on this.


Can you post a link to the exercise?



Just saw another item which could be causing an issue--make sure to add a colon on your for loop. Sorry, I missed that initially.


THANK YOU! I knew I had to be missing something like that.


Yea definitely, Happy I could help!