Account
Categories

List Concatenation (+) Operation


Definition:

It combines the data from two or more lists into a single list using the plus (+) concatenation operator.

Syntax:

list1 + list2

Example:

a = [1, 2]
b = [3, 4]

c = a + b
print(c)

Output:

Exercise

Create two lists a = [10, 20] and b = [30, 40], then combine them using concatenation and print the result.