Yes, membership operators can be used with strings, lists, tuples, sets, and dictionaries. For dictionaries, they check for the presence of a key, not the value.
Python Code –
d = {‘name’: ‘Alice’, ‘age’: 25}
‘name’ in d # True (checks for the key)
‘Alice’ in d # False (does not check the value)