Welcome to the Treehouse Community
Looking to learn something new?
Jt Miller1,242 Points
It tells me to create a var named age and then make admitted true if age is 13 or over and I'm stuck.
admitted = None age = 13 if age > 13: admitted = True
Jennifer NordellTreehouse Teacher
Hi there! First off, you have misread the instructions. Take a look at the first sentence:
I'm going to create a variable named age.
This means that Treehouse is making that variable and they're going to send in a number to the age (possibly several times with several numbers) to make sure that your code passes in each case. But in this line you're overwriting what they're sending in, so it needs to be removed.
age = 13
if statement is checking if the person is older than 13. But the statement should be checking if the person is 13 or older. We want anyone who is 13 or older to be admitted. So a 13 year old should be able to get in. But your code requires them to be a minimum of 14 to get in.
I feel like you can get it with these hints, but let me know if you're still stuck!