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 trialAkansha Tiwary
Courses Plus Student 198 PointsHow can I make an if condition that sets a variable to True ?
.
admitted = None
1 Answer
Jennifer Nordell
Treehouse TeacherI know you're working on the challenge, but let's see if you can get it if I just post an example.
My code is going to see if a number is less than 10 or equal to 10.
myNumber = 3
lessThanTen = None
if myNumber <= 10:
lessThanTen = True
Try the challenge again keeping this example in mind. You're going to need to adjust a few things to make it work though! Hope this helps, but let us know if you're still having problems!