1a = False
2if not a:
3 #Does this
4
5a = True
6if not a:
7 #Doesn't do this
1# Using "if not" is practically saying that, 'if this condition is false......'
2a = False
3if not a:
4 print("a is False")
5
6# IS SAME AS:
7
8if a == False:
9 print("a is False")
1arr = ['a','b','c','d','e','f']
2
3if 'g' not in arr:
4 print('g is not in the list')
1today = 'Sunday'
2
3if not today=='Sunday':
4 print('Go to work.')
5else:
6 print('Take rest.')