or not python code example
Example 1: is not in python
li = [1,2,'a','b']
if 'hello' not in li:
print('hello is not in the list')
Example 2: python is not
result is not None
Example 3: python or
x = 1
y = 10
if x%2 == 0 or y%2 == 0:
print(x%2)
#Output#
#1
Example 4: or in python
# Syntax for Boolean expression with or in Python
exp1 or exp2