Suppose D 8220john822140 8220peter822145 To Obtain The Number #554
Suppose d = {“john”:40, “peter”:45}. To obtain the number of entries in dictionary which command do we use?
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Dictionary - Python Dictionary - Quiz No.1.
Suppose d = {“john”:40, “peter”:45}. To obtain the number of entries in dictionary which command do we use?
d.size()
len(d)
size(d)
d.len()