Concatenarea listelor în Python

Pentru a concatena liste poți folosi operatorul +. În acest caz vom obține o listă nouă:

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

res = lst1 + lst2
print(res) # va afișa [1, 2, 3, 4, 5, 6]
Задание 1

Sunt date listele:

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

Scrieți codul pentru a obține următorul rezultat:

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

Sunt date listele:

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

Concatenați-le într-o listă nouă.