Python-Quizzes | Python Dictionary Quiz | Question 18
Question 18:Find the output of the following program:
dictionary = { "geek" : 10 , "for" : 45 , "geeks" : 90 }
print ( "geek" in dictionary)
|
(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
Last Updated :
17 Sep, 2020
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...