A

Admin • 802.91K Points
Coach

Q. What does `dict.clear()` do?

  • (A) Deletes the dictionary
  • (B) Clears all elements in the dictionary
  • (C) Returns the dictionary keys
  • (D) Returns None

Explanation by: Admin
`clear()` removes all key-value pairs from the dictionary.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.