Question: Is it enough to use a set as a dictionary key? a . No , the set must be converted to a tuple. b .
Is it enough to use a set as a dictionary key?
a No the set must be converted to a tuple.
b Yes, it is okay to use a set as a dictionary key.
c No the set must be converted to a string.
d Yes, if the set is a frozenset.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
