CBSE · 083Class XII · 2025Section B1 mark

Question 24ii(or)

4 March 2025 · Computer Science (083)

(ii) (b) Write a statement to delete the item with the given key "Amit" from the dictionary D1.

Answer

python
del D1['Amit']

Explanation

The del keyword removes the item with the specified key. D1.pop('Amit') is also valid.