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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Adds new key-value pairs
Explanation: update adds new or updates existing key-value pairs.
Explanation by: Mr. Dubey
update adds new or updates existing key-value pairs.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate