Suppose d = {“john”:40, “peter”:45}, to obtain the number of entries in dictionary what command do we use
A. d.size()
B. len(d)
C. size(d)
D. d.len()
Answer:A
Suppose d = {“john”:40, “peter”:45}, to obtain the number of entries in dictionary what command do we use
A. d.size() B. len(d) C. size(d) D. d.len()
Explanation:Execute in the shell to verify.