if does not python code example
Example 1: python is not
result is not None
Example 2: python if not
today = 'Sunday'
if not today=='Sunday':
print('Go to work.')
else:
print('Take rest.')
result is not None
today = 'Sunday'
if not today=='Sunday':
print('Go to work.')
else:
print('Take rest.')