Q.

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)
C. size(d)
D. d.len()
Answer» B. len(d)
Explanation: execute in the shell to verify.
2.1k
0
Do you find this helpful?
14

Discussion

No comments yet