Membership
In operator
The membership operator in checks if the key is present in the dictionary and returns True, else it returns False.
Example:
Not in operator
The not in operator returns True if the key is not present in the dictionary , else it returns False.
Example: