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 trialJennifer P
1,621 PointsIt says this is incorrrect: Invalid syntax (line 1). Line 1 was already filled in when I got to this challenge.
What am I missing? I wrote the 2nd line.
admitted = None
if admitted >= 13
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Yes, the compiler errors can be a little odd, I know. However, an if
statement should end with a colon :
and yours doesn't. But adding a colon won't solve the entire thing. You still need to tell it what to do if that evaluated to true.
Hope this helps!