Python Tutorials · Python Lists
Join Lists
Learn all about Join Lists in this comprehensive tutorial.
5 min read beginner
- •There are several ways to join, or concatenate, two or more lists in Python.
Join Two Lists
There are several ways to join, or concatenate, two or more lists in Python.
One of the easiest ways are by using the + operator.
python
Another way to join two lists is by appending all the items from list2 into list1, one by one:
python
Or you can use the extend() method, where the purpose is to add elements from one list to another list:
python
Module quiz
2 questions1
Which of the following is true about Join Lists?
2
What is the most common pitfall when working with Join Lists?
Answer all questions to submit.