McqMate
| 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. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet