How to Append One List Into Another in Python


In this example, we will learn how to append one list into another in Python.

Source Code

list1 = ['a', 'b']
list2 = ['e', 'f']

for item in list2:
    list1.append(item)

print(list1)

Output:

['a', 'b', 'e', 'f']
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments