Tuples are immutable, meaning their elements cannot be changed after creation.
However, if a tuple contains mutable objects (e.g., lists), those objects can be modified.
Example:
Copy
person = ("Anand", 28, ["Chennai", "Bangalore"])person[2].append("Mumbai") # Modify the list inside the tupleprint(person) # Output: ('Anand', 28, ['Chennai', 'Bangalore', 'Mumbai'])