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 trialSakinah McCoy
471 PointsChallenge.py syntax error for user name
Hello, I appreciate any help in advance!!! I'm getting a syntax error: invalid syntax for line 11. This current string is what I changed it to after I originally got the error. The string at first was similar to line 12. I already played around with the indentation with both lines and nothing worked.
1 Answer
Steven Parker
231,269 PointsThe problem is actually on line 5 where the parentheses are unbalanced. There needs to be one more closing parenthesis at the end of the line.
The system doesn't detect the problem until it encounters the next statement (on line 11).
Sakinah McCoy
471 PointsSakinah McCoy
471 PointsThank you, Steven. You are getting me together. I was able to add my code to my question this time thanks to you, also. You're a lifesaver. I was working on that code for hours.