KnowledgeBoat Logo
|

Computer Science

A tuple can be used as the key in a dictionary if it contains immutable elements.

Python Tuples

3 Likes

Answer

True

Reason — A tuple can be used as a key in a dictionary if all the elements within the tuple are immutable. This is because dictionary keys must be unique and immutable.

Answered By

2 Likes


Related Questions