Can a tuple contain mutable objects?
Reveal the answer and explore the explanation.
02EasyCoreCan a tuple contain mutable objects?
Answer
EasyCore
Can a tuple contain mutable objects?
Answer
Immutable ordered collection; contained objects may still be mutable.
Practical example
Use a pair of coordinates as a dictionary key when its contents are hashable.
Reference: Further reading ↗