- The operator + concatenates two lists:
L1 = [1, 2] L2 = [3, 4] L = L1 + L2 # [1, 2, 3, 4]
- As you might expect, multiplying a list by an integer concatenates the list with itself several times:
n*L is equivalent to making n additions:
L = [1, 2] 3 * L # [1, 2, 1, 2, 1, 2]