A

Admin • 825.56K Points
Coach

Q. What does `dict.pop('key')` do?

  • (A) Removes and returns the value for 'key'
  • (B) Deletes the key only
  • (C) Removes all keys
  • (D) Raises an error always

Explanation by: Admin
`pop()` removes the specified key and returns its value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.