# Concatenating two lists in Python

To concatenate lists you can just use the + operator:

list3 = list1 + list2


If you want to get an iterator over the contents of both lists, you can use itertools.chain():

from itertools import chain
it = chain(list1, list2)