Pythonis loendite ühendamine

Loendite ühendamiseks saab kasutada tehet +. Sel juhul saame uue loendi:

pythonlst1 = [1, 2, 3]
lst2 = [4, 5, 6]

res = lst1 + lst2
print(res) # väljastab [1, 2, 3, 4, 5, 6]
Задание 1

Antud on loendid:

pythonlst1 = ['4', '5', '6']
lst2 = ['1', '2', '3']

Kirjutage kood, et saada järgmine tulemus:

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

Antud on loendid:

pythonlst1 = ['a', 'b', 'c']
lst2 = ['d', 'e']
lst3 = [1, 2, 3]

Ühendage need uueks loendiks.