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:
Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class