English

Which of the following will delete key-value pair for key = “Red” from a dictionary D1? - Computer Science (Python)

Advertisements
Advertisements

Question

Which of the following will delete key-value pair for key = “Red” from a dictionary D1?

Options

  • delete D1("Red")

  • del D1["Red"]

  • del.D1["Red"]

  • D1.del["Red"]

MCQ

Solution

del D1["Red"]

shaalaa.com
Key Concepts in Database Management System (DBMS)
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×