Advertisements
Advertisements
प्रश्न
Assuming that D1 is a dictionary in Python.
Write a single statement to delete all the elements from D1.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
D1.clear()
This statement removes all items (key-value pairs) from the dictionary, leaving it empty.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) Set 4
