Q. Which of these will return the number of keys in a dictionary `d`?

  • (A) len(d)
  • (B) d.length()
  • (C) d.count()
  • (D) size(d)
πŸ’¬ Discuss
βœ… Correct Answer: (A) len(d)
Explanation: `len(d)` returns the number of keys in dictionary `d`.
Explanation by: Mr. Dubey
`len(d)` returns the number of keys in dictionary `d`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
70
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate