Tuple immutable, nhưng có thể tạo tuple mới bằng toán tử +.
Ví dụ
x = (1, 2, 3) y = (4, 5) x = x + y print(x) # (1, 2, 3, 4, 5)
Tuple immutable, nhưng có thể tạo tuple mới bằng toán tử +.
x = (1, 2, 3) y = (4, 5) x = x + y print(x) # (1, 2, 3, 4, 5)