
Sept. 2, 2021
3:04 a.m.
Michael Lee writes:
None is primarily useful for representing the absence of some value, and I'm not sure if that's something beginners actually need to write interesting and useful code.
In Python, we generally think of writing code as a subordinate skill. :-) In reading code, beginners will need to know about None: it's going to show up over and over as a default value in function signatures and in print(foo()) output for functions without return values. You may not need to teach them about singletons, though. Steve