Use append to merge two lists in python

lista = [1,2,3]
listb = [4,5,6]
 
mergedlist =[]
for elem in lista:
    mergedlist.append(elem)
for elem in listb:
    mergedlist.append(elem)

Enjoyed this post? Share it!