Merge Tuple to String in Python

You can also merge elements of a tuple into a string using the join method:

pythontpl = ('a', 'b', 'c')
txt = '-'.join(tpl)

print(txt) # 'a-b-c'
Задание 1

A tuple is given:

pythontpl = ('1', '2', '3', '4', '5')

Merge the elements of this tuple into a string with a separator:

python'1-2-3-4-5'
Задание 2

A tuple is given:

pythontpl = ('1', '2', '3', '4', '5')

Merge the elements of this tuple into a string:

python'12345'