Can a dictionary key be a tuple?
Correct answer
Yes, if the tuple contains only immutable elements
Explanation
Only tuples with immutable contents can be used as dictionary keys.
Update: Admin added a tag on this question
Topics
By Admin · · 33 views