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

Python Python Collections (2016, retired 2019) Lists Shopping List Take Three

What is "None"?

Kindly explain the key word "None" that was used in conditional statement. So little explanation was given.

Thanks

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,441 Points

According 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!!

Thanks chris, i think i should get used to referring to the docs.

Mark Nembhard
Mark Nembhard
1,387 Points

Thanks 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