Python Multiple Choice Questions
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()
Show Answer




DigitalOcean Referral Badge

© 2022-2023 Python Circle   Contact   Sponsor   Archive   Sitemap