Membership

In operator

The membership operator in checks if the key is present in the dictionary and returns True, else it returns False.

Example:

[Computer Science Class 11] Dictionary Operations - Teachoo - Concepts

Not in operator

The not in operator returns True if the key is not present in the dictionary , else it returns False.

Example:

part 2 - Dictionary Operations - Concepts - Chapter 10 Class 11 - Tuples and Dictionaries - Computer Science - Class 11

Remove Ads
Teachoo · Class 11 Explore Class 11
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh is an IIT Kanpur graduate and has been teaching for 16+ years. At Teachoo, he breaks down Maths, Science and Computer Science into simple steps so students understand concepts deeply and score with confidence.

Many students prefer Teachoo Black for a smooth, ad-free learning experience.