

InterviewSolution
Saved Bookmarks
1. |
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()I got this question by my school teacher while I was bunking the class.The question is from Dictionary topic in division Dictionary, Functions and Built-in Functions of Python |
Answer» The correct CHOICE is (b) LEN(d) |
|