A

Admin • 825.56K Points
Coach

Q. What happens when two keys in a dictionary are the same?

  • (A) An error occurs
  • (B) The first key is retained
  • (C) The last key overwrites the previous one
  • (D) Both keys are stored

Explanation by: Admin
In a dictionary, duplicate keys are not allowed. The last assignment overwrites the previous one.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.