Open In App

Python-Quizzes | Python Dictionary Quiz | Question 18

Like Article
Like
Save
Share
Report

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
Previous
Next
Share your thoughts in the comments
Similar Reads