If a tuple is immutable then why can it contain mutable items?

It is seemingly a contradiction that when a mutable item such as a list does get modified, the tuple it belongs to maintains being immutable.

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *