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 trialZachary Wheeler
1,157 PointsIf Statement
I'm having trouble understanding the instructions on this particular activity. Can someone maybe clear those up for me?
admitted = None
if age >= 13
print(admitted)
2 Answers
Zachary Wheeler
1,157 Pointsohh ok that makes sense. Thanks!
jacinator
11,936 Pointsadmitted
is preset to None. They want you to set it to True
if age >= 13
. You've got the if part down. It's just the variable assignment in the block that you're missing; and a :
at the end of your if.
Zachary Wheeler
1,157 Pointsa at the end of if? so like if age >= 13(a)?
Sorry didn't quite understand that part of what you were saying
jacinator
11,936 PointsYou're missing a colon. if age >= 13: