None False 0 0.0 0j Decimal(0) Fraction(0, 1) [] - an empty list {} - an empty dict () - an empty tuple '' - an empty str b'' - an empty bytes set() - an empty set an empty range, like range(0) objects for which obj.__bool__() returns False obj.__len__() returns 0
Here is what the above code is Doing:
1. It’s creating a list of all the false values in Python.
2. It’s creating a list of all the true values in Python.
3. It’s creating a list of all the values in Python.
4. It’s creating a list of all the values in Python that are not false.
5. It’s creating a list of all the values in Python that are not true.
6. It’s creating a list of all the values in Python that are not false or true.