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 trialGurjinder Singh
413 PointsKeep Showing That( invalid syntax (<string>, line 3) ) In my code challenge please help me with this.
Can someone please explain me what I really need To do In this Code Challenge. I did't Understand properly What to do.
admitted = None
admitted = True
if age >= 13
2 Answers
Niklas Khor
1,695 Pointsadmitted = None
if age >= 13: admitted = True else: admitted = False
Jennifer Nordell
Treehouse TeacherHi there! I feel like you're pretty close here so I'm going to leave some hints.
- The
if
statement should end with a colon:
- Do not remove the first line
- Move the second line inside of your
if
statement block. When I say inside I mean below and indented.
Hope this helps, but let us know if you're still stuck!
Gurjinder Singh
413 PointsThanks For The Explanation
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsNiklas,
Outright answers without explanation should not be posted. You can either give hints or explain any code that you're posting.
Gurjinder Singh
413 PointsGurjinder Singh
413 PointsThanks