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) Logic in Python Conditional Value

Zachary Wheeler
Zachary Wheeler
1,157 Points

If Statement

I'm having trouble understanding the instructions on this particular activity. Can someone maybe clear those up for me?

conditions.py
admitted = None
if age >= 13
    print(admitted)

2 Answers

Zachary Wheeler
Zachary Wheeler
1,157 Points

ohh ok that makes sense. Thanks!

admitted 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
Zachary Wheeler
1,157 Points

a at the end of if? so like if age >= 13(a)?

Sorry didn't quite understand that part of what you were saying

You're missing a colon. if age >= 13: