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 trialaa114
1,697 PointsWhat is "None"?
Kindly explain the key word "None" that was used in conditional statement. So little explanation was given.
Thanks
1 Answer
Chris Freeman
Treehouse Moderator 68,457 PointsAccording to the docs: The sole value of the type
NoneType. None is frequently used to represent the absence of a value, as when default arguments are not passed to a function. Assignments to
None are illegal and raise a
SyntaxError.
Post back if you need more help. Good luck!!
aa114
1,697 Pointsaa114
1,697 PointsThanks chris, i think i should get used to referring to the docs.
Mark Nembhard
1,387 PointsMark Nembhard
1,387 PointsThanks Chris. There is a tendency for the presenter to whip through these "basic examples" that include more than once concept that takes a little time for at least my brain to fully compute. I understand the logic of it but memorising the syntax of it and applying takes time and sometimes a check on the net for another explanation