How to join three tuples in Python

1 Answer

0 votes
tpl1 = ("Python", "Java", "PHP")
tpl2 = ("a", "b", "c", "d", "e")
tpl3 = (1, 2, 3, 4)

jt = zip(tpl1, tpl2, tpl3)

print(tuple(jt))


'''
run:

(('Python', 'a', 1), ('Java', 'b', 2), ('PHP', 'c', 3))

'''

 



answered Dec 18, 2018 by avibootz
...