I was going through python language reference and I came across following:
when we talk about the mutability of a container, only the identities of the immediately contained objects are implied. So, if an immutable container (like a tuple) contains a reference to a mutable object, its value changes if that mutable object is changed.
Am I correct in thinking that tuple can be considered both as mutable and immutable based the things it contains? For example if a tuple contains only strings then it can be immutable and if it contains at least one mutable reference like list then the tuple is itself mutable as.