python not true 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: not in python
# False
print(not(1 == 1))
# True
print(not(1 == 2))
a = False
if not a:
#Does this
a = True
if not a:
#Doesn't do this
# False
print(not(1 == 1))
# True
print(not(1 == 2))