dat = ['a', 'b', 'c'] print('a' in dat) # True print('b' in dat) # False print('a' not in dat) # False print('b' not in dat) # True