Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Python for Beginners Running Python Scripts

Lalit Aditya
Lalit Aditya
400 Points

Got a syntax error.

For some reason it is showing invalid syntax, though I have followed all the steps correctly. Can you please help me out?

Jen Farrant
Jen Farrant
6,905 Points

yes, what Behar said, if you click on 'ask for help' and then select the 'attach my code' at the bottom we can see what you are doing and provide specific help.

Invalid syntax means you have done something wrong, quite like missed a comma, or a colon, or not closed a bracket () or similar.

1 Answer

If it is showing invalid syntax you have not followed all the steps correctly. That being said, we cannot help if you dont post your code here, for us to trobuleshoot. So please do that and ill be sure to help!