Op in Python
Op in Python
a=10
b=5 Output:
print(a>b)
print(a<b)
print(a==b)
print(a!=b)
print(a>=b)
print(a<=b)
Logical Operator
False
True
False
print("H" in a)
print("hello" in a ) Output:
print(1 in b) True
False
print("b" in b) True
True
Print(“c” not in b) True