हिंदी

Consider the following dictionaries, D and D1: D={"Suman": 40, "Raj":55, "Raman":60} D1={"Aditi":30, "Amit":90,"Raj":20} (Answer using built-in Python functions only) Write a statement to delete - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Consider the following dictionaries, D and D1:

D={"Suman": 40, "Raj":55, "Raman":60}
D1={"Aditi":30, "Amit":90,"Raj":20}

(Answer using built-in Python functions only)

Write a statement to delete the item with the given key “Amit” from the dictionary D1.

कोड लेखन
Advertisements

उत्तर

D1.pop("Amit")
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Set 4

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×