Vidyalelo
Python · Q47

MCQs for Python Dictionaries: Exam

Programming · Python · question 47

Q47

Suppose d = "john":40, "peter":45. To obtain the number of entries in dictionary which command do we use?

A.
d.size()
B.
len(d)
Answer
C.
size(d)
D.
d.len()

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board