Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
What is more correct - depending on what you need to get. If this is an immutable enum, then you can hedge against changing it and make a tuple. If you later need to add / remove something in this list, then it is logical to take a sheet.
There is, of course, another difference, in that the tuple is a hashable type, which, for example, allows you to use it entirely as a dictionary key, but I think this is not very popular.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question