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
Joshua Lowell
9,088 Points'none' is not a string or a list? how do we change to true if its not anything?
I'm not understanding how to change admitted to true. Some help would be appreciated!
admitted = None
2 Answers
Steven Parker
243,134 PointsEven though admitted starts out representing nothing (None), you can always re-assign it later to represent something (else), including True.
Chris Freeman
Treehouse Moderator 68,468 Pointsadmitted is a variable reference. So admitted = None means the variable admitted is referencing the value None (stored in memory some where - not important as Python handles that). You change it's value by changing what it refers to.
# change admitted to False
admitted = False
# change admitted to True
admitted = True