A

Admin • 802.91K Points
Coach

Q. Which data structure can be used as a key in a dictionary?

  • (A) List
  • (B) Set
  • (C) Tuple
  • (D) Dictionary
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
Only immutable types like tuples can be used as dictionary keys.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.