Run
a = 'apple' b = ['apple', 'banana', 'cherry'] print('a in b :', (a in b)) #membership in print('a not in b :', (a not in b)) #membership not in
Output