Python Dictionary Practice Questions


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

    a. delete D1("Red")
    b. del D1["Red"]
    c. del.D1["Red"]
    d. D1.del["Red"]
    
  2. (b) del D1["Red"]