0 votes
in Python by
How can you concatenate two tuples?

1 Answer

0 votes
by

Solution ->

Let’s say we have two tuples like this ->

tup1 = (1,”a”,True)

tup2 = (4,5,6)

Concatenation of tuples means that we are adding the elements of one tuple at the end of another tuple.

All you have to do is, use the ‘+’ operator between the two tuples and you’ll get the concatenated result.

tuple1 = ("a""b" , "c")
tuple2 = (123)

tuple3 = tuple1 + tuple2
print(tuple3)

Related questions

0 votes
asked Sep 23, 2023 in Dot Net by Robin
0 votes
asked Feb 11, 2021 in Python by SakshiSharma
...