None in Python
Briefly

The NoneType class is a singleton class. So comparing to None with is works because there's only one None value. No object should compare as equal to None unless it is None.
We often rely on the in Python. So instead of checking whether an object is None, we could check whether that object is falsey. This works particularly well if all of the objects we're working with are either truthy or None.
Read at Pythonmorsels
[
add
]
[
|
|
]