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
Python Examples Python Compiler ... Q&A Python Bootcamp Python Certificate Python Training ... You can use the append() method to add an element to an array....
🌐
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.
🌐
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.
🌐
W3Schools
w3schools.com β€Ί python β€Ί ref_list_append.asp
Python List append() Method
Python Examples Python Compiler ... Q&A Python Bootcamp Python Certificate Python Training ... The append() method appends an element to the end of the list....
🌐
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.
🌐
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().
Find elsewhere
🌐
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.
🌐
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! What are lists in Python? A definition for beginners An array in programmi...
🌐
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:
🌐
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.
🌐
W3Schools
w3schools.com β€Ί python β€Ί python_lists_add.asp
Python - Add List Items
The extend() method does not have to append lists, you can add any iterable object (tuples, sets, dictionaries etc.).
🌐
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 β€Ί home β€Ί python β€Ί python array append method
Python Array Append Method
February 21, 2009 - Learn how to use the append method in Python arrays to add elements efficiently. Discover examples and best practices for array manipulation.
🌐
Spark By {Examples}
sparkbyexamples.com β€Ί home β€Ί python β€Ί add elements to an array in python
Add Elements to an Array in Python - Spark By {Examples}
May 31, 2024 - Python does not have a built-in ... to an array in Python by using many ways, for example, using the + operator, append(), insert(), and extend() functions....
🌐
Python Guides
pythonguides.com β€Ί append-to-an-array-in-python
How To Append To An Array In Python?
March 19, 2025 - In this tutorial, I explained how to append to an array in Python, by various methods, like append() method which adds a single element at the end of an array, by extend() method we can add multiple elements to the end of an array, and by using list comprehensions creating a new list that includes the original elements, I also showed how to create using the array module and by using lists.I also explained how to handle Python Arrays with NumPy, and appending multiple elements with NumPy, we also discussed common issues to avoid.
🌐
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.