Tuple'i teisendamine loendiks Pythonis

Tuple'ist loendi tegemiseks tuleb kasutada funktsiooni list:

pythontpl = ('a', 'b', 'c')
res = list(tpl)

print(res) # väljund on ['a', 'b', 'c']
Задание 1

Antud on tuple:

pythontpl = ('2', '6', '12')

Tehke sellest loend.

Задание 2

Antud on tuple'id:

pythontpl1 = ('1', '2', '3')
tpl2 = ('4', '5')

Tehke nendest järgmine loend:

python['1', '2', '3', '4', '5']
Задание 3

Antud on tuple:

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

Pöörake see ümber:

python(5, 4, 3, 2, 1)