if not and if is python code example
Example 1: if not python
a = False
if not a:
yourFunction()
Example 2: python if not
today = 'Sunday'
if not today=='Sunday':
print('Go to work.')
else:
print('Take rest.')
a = False
if not a:
yourFunction()
today = 'Sunday'
if not today=='Sunday':
print('Go to work.')
else:
print('Take rest.')