tuple1 = (1, 2, 3, 4)
tuple2 = (5, 6, 7, 8)
tuple3 = tuple1 + tuple2
print(tuple3)
Output
(1, 2, 3, 4, 5, 6, 7, 8)
If you want to concatenate or join two tuples in python you can use the '+' keyword and it will provide you the new list which will contain items of both tuples.
0 Comments