Python, Python Programming, Programming.
Modifying the list by adding an element print(my_list) The output result: [1, 2, 3, 4] Immutable data types, on the other hand, cannot be changed once they are created. Examples of immutable data types include strings, tuples and frozensets. Any operation that appears to modify an immutable object