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
Markie Chancellor
10,809 PointsI can not get my python basics program to run. Here it is:
age = input("are you at least 21?") if age == yes: print("yay") else: print("nay")
I appreciate the help!
1 Answer
Baruch Zeif
7,654 PointsTry putting quotation marks around the "yes". Without them python tries looking for a variable called yes.
Baruch Zeif
7,654 PointsBaruch Zeif
7,654 PointsAccidentally wrote parentheses instead of quotation marks earlier. Not the same thing at all.