Python-Quizzes | Python Dictionary Quiz | Question 18

Question 18:Find the output of the following program:

filter_none

edit
close

play_arrow

link
brightness_4
code

dictionary = {"geek":10, "for":45, "geeks": 90
print("geek" in dictionary) 

chevron_right


(A) 10
(B) False
(C) True
(D) Error


Answer: (C)

Explanation: in is used to check the key exist in the dictionary or not.

Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.