Home »
Python »
Python Dictionary MCQs
Which keyword is used to check the particular key in the dictionary?
29. Which keyword is used to check the particular key in the dictionary?
- is
- in
- check if
- None
Answer: B) in
Explanation:
The in keyword is used to check whether the particular element is in the key or not. It returns true if the key is there in the list else it returns false.