A

Admin • 825.56K Points
Coach

Q. Which method adds a new key-value pair to a dictionary?

  • (A) add()
  • (B) append()
  • (C) insert()
  • (D) assignment using [ ]

Explanation by: Admin
New key-value pairs are added using assignment like `dict[key] = value`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.