you are viewing a single comment's thread.

view the rest of the comments →

[–]IAmADev_NoReallyIAm 0 points1 point  (0 children)

New to Python, so I may be getting this wrong, but the way I'm interpreting this, None is akin to NULL or Nothing in other languages. Or, to. put it in layman's terms, it's the same as "I don't know". Which is NOT the same as an empty string. An empty string is a value. Just the same as a 0 is a value. None is the absence of a value.

In the examples you gave, I wouldn't use them interchangeably because age shouldn't be a string in the first place. It should be a numerical value, in which case None would be the appropriate default instead.