A

Admin • 833K Points
Coach

Q. What does the update method do in a dictionary?

  • (A) Clears the dictionary
  • (B) Adds new key-value pairs
  • (C) Removes existing keys
  • (D) Sorts the dictionary
  • Correct Answer - Option(B)
  • Views: 34
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

update adds new or updates existing key-value pairs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.