πŸ“Š Python
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

πŸ‘οΈ
58
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate