"""author: @pythonpips"""

foo = [1, 2, 3]
bar = [4, 5, 6]
baz = [*foo, *bar]
# baz outputs [1, 2, 3, 4, 5, 6]
How to Concatenate Two Lists in Python

Subscribe to our newsletter