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().
๐ŸŒ
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.
Find elsewhere
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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.).
๐ŸŒ
AskPython
askpython.com โ€บ home โ€บ python add elements to an array
Python add elements to an Array - AskPython
January 16, 2024 - By using + operator: The resultant array is a combination of elements from both the arrays. By using append() function: It adds elements to the end of the array.
๐ŸŒ
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.
๐ŸŒ
Quora
quora.com โ€บ How-do-I-add-to-an-array-in-Python
How to add to an array in Python - Quora
Answer (1 of 3): I am assuming youโ€™re talking about โ€œListsโ€ in python. You can append/add data to a list in python with the โ€œappendโ€ method. Eg: arrList.append(โ€œdataโ€). You may want to check out 5. Data Structures - Python 3.9.4 documentation