How to Join Two Or More Tuples in Python


In this example, we will learn how to join two or more tuples in Python.

Source Code

tuple1 = ('apple', 'banana', 'orange')
tuple2 = ('cow', 'sheep', 'pig')
tuple3 = tuple1 + tuple2

print(tuple3)

Output:

('apple', 'banana', 'orange', 'cow', 'sheep', 'pig')
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement