CBSE · 083Class XII · 2025Section B1 mark
Question 24i(or)
4 March 2025 · Computer Science (083)
(i) (b) Write a statement to display the length of the dictionary D1.
Answer
python
print(len(D1))Explanation
The len() function returns the number of items (key-value pairs) in the dictionary.