Python membership operators

Author: Al-mamun Sarkar Date: 2020-03-24 19:11:54

Use of python membership operators. Python in operator, is operator, and is not operators.

Code:

a = 'Bangladesh'
b = 'desh'
e = 'desh'
c = "Ind"

print(b in a)
print(c not in a)

print(a is b)
print(a is not b)
print(e is b)