Append to a list defined in a tuple – is it a bug? [duplicate]
Yes it’s expected. A tuple cannot be changed. A tuple, like a list, is a structure that points to other objects. It doesn’t care about what those objects are. They could be strings, numbers, tuples, lists, or other objects. So doing anything to one of the objects contained in the tuple, including appending to that … Read more