Q. Though tuples are immutable type, yet they cannot always be used as keys in a dictionary. What is the condition to use tuples as a key in a dictionary?


Answer =

The condition to use tuples as key in a dictionary that tuple must be contains immutable data type or element in tuple.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post