πŸ“Š Python
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

πŸ‘οΈ
49
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate