So when we “join” tuples, Python does not modify the original tuple instead, it creates a new tuple.
" + " Operator :
The + operator joins two tuples and returns a new tuple.
Python
tuple1 = (1, 2, 3) tuple2 = (4, 5, 6) result = tuple1 + tuple2 print(result) #output (1, 2, 3, 4, 5, 6) " * " Operator :
The * operator repeats a tuple multiple times.
Python
data = (1, 2) result = data * 3 print(result) #output (1, 2, 1, 2, 1, 2)