You can append the elements of one list to another with the "+=" operator. Note that the "+" operator creates a new list.

a = [1, 2, 3]
b = [10, 20]

a = a + b # Create a new list a+b and assign back to a.
print a
# [1, 2, 3, 10, 20]


# Equivalently:
a = [1, 2, 3]
b = [10, 20]

a += b
print a
# [1, 2, 3, 10, 20]

If you want to append the lists and keep them as lists, then try:

result = []
result.append(a)
result.append(b)
print result
# [[1, 2, 3], [10, 20]]
Answer from stackoverflowuser2010 on Stack Overflow
🌐
W3Schools
w3schools.com β€Ί python β€Ί gloss_python_array_add.asp
Python Add Array Item
You can use the append() method to add an element to an array. ... Python Array Tutorial Array What is an Array Access Arrays Array Length Looping Array Elements Remove Array Element Array Methods ...
🌐
W3Schools
w3schools.com β€Ί python β€Ί ref_list_append.asp
Python List append() Method
The append() method appends an element to the end of the list. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com
🌐
W3Schools
w3schools.com β€Ί python β€Ί python_arrays.asp
Python Arrays
You can use the append() method to add an element to an array. ... You can use the pop() method to remove an element from the array. ... You can also use the remove() method to remove an element from the array.
🌐
AskPython
askpython.com β€Ί home β€Ί how to append an array in python?
How to append an Array in Python? - AskPython
January 16, 2024 - Python append() function enables us to add an element or an array to the end of another array.
🌐
DigitalOcean
digitalocean.com β€Ί community β€Ί tutorials β€Ί python-add-to-array
Python Array Add: How to Append, Extend & Insert Elements | DigitalOcean
April 15, 2025 - Learn how to add elements to an array in Python using append(), extend(), insert(), and NumPy functions. Compare performance and avoid common errors.
🌐
Real Python
realpython.com β€Ί python-append
Python's .append(): Add Items to Your Lists in Place – Real Python
October 21, 2023 - In this step-by-step tutorial, you'll learn how Python's .append() works and how to use it for adding items to your list in place. You'll also learn how to code your own stacks and queues using .append() and .pop().
🌐
freeCodeCamp
freecodecamp.org β€Ί news β€Ί append-in-python-how-to-append-to-a-list-or-an-array
Append in Python – How to Append to a List or an Array
January 7, 2022 - In this article, you'll learn about the .append() method in Python. You'll also see how .append() differs from other methods used to add elements to lists. Let's get started! An array in programming is an ordered collection of items, and all items need to be of the same data type.
Find elsewhere
🌐
W3Schools
w3schools.com β€Ί python β€Ί python_lists_add.asp
Python - Add List Items
To append elements from another list to the current list, use the extend() method.
🌐
PhoenixNAP
phoenixnap.com β€Ί home β€Ί kb β€Ί devops and development β€Ί add elements to python array
Add Elements to Python Array (3 Methods)
December 15, 2025 - 3. Add one or more elements to an array end with the extend() method. Provide the elements in an iterable data type. The items in the iterable must match the array's data type. For example, add multiple elements to an array with a Python list:
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί python β€Ί how-to-add-element-to-array-in-python
How to Add Element to Array in Python - GeeksforGeeks
July 23, 2025 - The simplest and most commonly used method to append an element to an array in Python is by using append() method.
🌐
NumPy
numpy.org β€Ί doc β€Ί stable β€Ί reference β€Ί generated β€Ί numpy.append.html
numpy.append β€” NumPy v2.4 Manual
A copy of arr with values appended to axis. Note that append does not occur in-place: a new array is allocated and filled.
🌐
TutorialsPoint
tutorialspoint.com β€Ί python-program-to-append-an-element-into-an-array
Python Program to Append an Element Into an Array
The element 9 is appended to the array, and which is added at the end of the array. The array module in Python allows us to create an array, and that can compactly represent an array.
🌐
Cach3
w3schools.com.cach3.com β€Ί python β€Ί ref_list_append.asp.html
Python List append() Method - W3Schools
Python HOME Python Intro Python Get Started Python Syntax Python Comments Python Variables Python Data Types Python Numbers Python Casting Python Strings Python Booleans Python Operators Python Lists Python Tuples Python Sets Python Dictionaries Python If...Else Python While Loops Python For Loops Python Functions Python Lambda Python Arrays Python Classes/Objects Python Inheritance Python Iterators Python Scope Python Modules Python Dates Python JSON Python RegEx Python PIP Python Try...Except Python User Input Python String Formatting
🌐
freeCodeCamp
freecodecamp.org β€Ί news β€Ί python-list-append-how-to-add-an-element-to-an-array-explained-with-examples
Python List Append – How to Add an Element to an Array, Explained with Examples
May 8, 2020 - Welcome Hi! If you want to learn how to use the **append()** method, then this article is for you. This is a powerful list method that you will definitely use in your Python projects. In this article, you will learn: Why and when you should use appe...
🌐
DataCamp
datacamp.com β€Ί doc β€Ί numpy β€Ί append
NumPy append()
Learn how to efficiently use the NumPy append function to add elements to arrays in Python. This guide covers syntax, examples, and best practices for seamless data manipulation.
🌐
Python
docs.python.org β€Ί 3 β€Ί library β€Ί array.html
array β€” Efficient arrays of numeric values
The length in bytes of one array item in the internal representation. ... Append a new item with value x to the end of the array.