true false in python code example
Example 1: python if not true
a = False
if not a:
#Does this
a = True
if not a:
#Doesn't do this
Example 2: false python
>>> print(not False)
True
>>> print(not [])
True
>>> print(not None)
True
>>> print(not "")
True
>>> print(not '')
True
>>> print(not 0)
True