A

Admin • 825.56K Points
Coach

Q. Can a dictionary have a key of any data type?

  • (A) Yes, any data type
  • (B) Only strings
  • (C) Only integers and strings
  • (D) Only immutable types like strings, numbers, tuples

Explanation by: Admin
Dictionary keys must be of immutable types such as strings, numbers, or tuples.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.