Open In App

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

Article Tags :