How to add two tuple together in Python
Adding two tuple values together
We can add two tuple values together with + operator.
tup1 = (12, 34.56)
tup2 = ('abc', 'xyz')
tup3 = tup1 + tup2
print tup3
The code above generates the following result.
We can add two tuple values together with + operator.
tup1 = (12, 34.56)
tup2 = ('abc', 'xyz')
tup3 = tup1 + tup2
print tup3
The code above generates the following result.