.append() appends a single object at the end of the list:

>>> x = [1, 2, 3]
>>> x.append([4, 5])
>>> print(x)
[1, 2, 3, [4, 5]]

.extend() appends multiple objects that are taken from inside the specified iterable:

>>> x = [1, 2, 3]
>>> x.extend([4, 5])
>>> print(x)
[1, 2, 3, 4, 5]
Answer from kender on Stack Overflow
Discussions

Lists in Python: .append() v. .insert()
What you just said - append appends elements to the end, insert inserts them in an arbitrary position. More on reddit.com
๐ŸŒ r/learnpython
4
1
August 11, 2020
append() vs. extend()
Append takes an item and inserts it as an item to the list. Extend takes a LIST, and inserts each item in the given list as items. a=[1,2,3] a.extend([4]) # will result in [1,2,3,4] a.append([4]) # will result in [1,2,3,[4]] The last item being a list containing 4, and not just 4. More on reddit.com
๐ŸŒ r/learnpython
11
4
July 22, 2023
Equivalent of dictionary.update() but for appending when value is a collection?
There is not an exact equivalent, but there are things that are similar. I would suggest using a default dict: import collections d = collections.defaultdict(list) d[5].append(4) But if it had to be a standard dictionary, you could do d[ind] = d.get(ind, []) + [x] Note: the second will not modify existing lists in place, which may or may not be a problem. EDIT: Per u/commy2 's reply below, setdefault is better way if you're restricted to regular dictionaries - especially if your lists will be getting long so that copying them is nontrivial, or if it's important to modify the lists in place. More on reddit.com
๐ŸŒ r/learnpython
4
2
July 20, 2024
How do I concatenate two lists in Python?
Use the + operator. More on reddit.com
๐ŸŒ r/Python
25
35
May 8, 2023
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ append-extend-python
Difference between append() and extend() in Python - GeeksforGeeks
January 13, 2026 - append() adds a single item (of any type) to the end of a list. extend() adds all elements from an iterable (like a list, tuple, or set) to the end of the current list.
๐ŸŒ
Medium
medium.com โ€บ @python-javascript-php-html-css โ€บ knowing-when-to-use-python-lists-append-vs-extend-97f970d08744
Knowing When to Use Python Listsโ€™ append() vs. extend()
August 24, 2024 - On the other hand, extend() caters to a more complex need โ€” merging one list with another. This method takes an iterable as its argument and appends each of its elements to the list, making it a go-to choice for concatenating lists efficiently.
๐ŸŒ
Sentry
sentry.io โ€บ sentry answers โ€บ python โ€บ append vs. extend in python
Append vs. extend in Python | Sentry
April 15, 2023 - The append() method is used to add an item to the end of a list, whereas the extend() method is used to merge a second list (or other iterable) onto the end of a list.
Find elsewhere
๐ŸŒ
DEV Community
dev.to โ€บ cscarpitta โ€บ 2-reasons-to-use-extend-instead-of-append-in-python-2kg2
2 reasons to use extend() instead of append() in Python - DEV Community
April 10, 2022 - So, extend() performs only one allocate operation. Adding many items to a list using append() in a loop can require many allocate operations. In order to mitigate this inefficiency, Python developers implemented a over-allocation, which reduces ...
๐ŸŒ
Afternerd
afternerd.com โ€บ blog โ€บ append-vs-extend
Python Lists: Append vs Extend (With Examples) - Afternerd
January 13, 2019 - Unlike append that can take an object of any type as an argument, extend can only take an iterable object as an argument.
๐ŸŒ
Daily.dev
app.daily.dev โ€บ posts โ€บ append-vs-extend-in-python-vwhq4jc3h
"append" VS "extend" in Python | daily.dev
May 25, 2025 - The post explains the difference between 'append' and 'extend' methods in Python lists. 'Append' adds a single element, while 'extend' allows adding multiple...
๐ŸŒ
Roberto Reif
robertoreif.com โ€บ blog โ€บ 2025 โ€บ 2 โ€บ 4 โ€บ python-lists-append-versus-extend
PYTHON LISTS: Append versus Extend โ€” Roberto Reif
October 25, 2025 - To add a single item (object) to the end of the list, we use the append method. This increases the list's length by 1. Note that appending another list creates a list of lists. To extend the list by adding each element from an iterable (e.g., ...
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-list-append-vs-python-list-extend
Python List Append VS Python List Extend โ€“ The Difference Explained with Array Method Examples
March 22, 2020 - The name of the method extend. (Now things start to change...). Within parentheses, an iterable (list, tuple, dictionary, set, or string) that contains the items that will be added as individual elements of the list. ๐Ÿ’ก Tips: According to the Python documentation, an iterable is defined as "an object capable of returning its members one at a time".
๐ŸŒ
Wyzant
wyzant.com โ€บ resources โ€บ ask an expert
Difference between append vs. extend list methods in Python? | Wyzant Ask An Expert
May 11, 2019 - append() adds its argument as a single element to the end of the list. If you append a list, the entire list becomes one element. extend() takes an iterable and adds each item from it individually to the list.
๐ŸŒ
Srinimf
srinimf.com โ€บ 2024 โ€บ 09 โ€บ 12 โ€บ append-vs-extend-a-detailed-comparison-for-python-lists
Append() vs Extend(): A Detailed Comparison for Python Lists โ€“ Srinimf
September 13, 2024 - In Python, append adds a single element to the end of a list, while extend adds multiple elements individually. Use append for single elements and extend for iterable concatenation.
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ difference between append and extend in python list methods
Difference Between Append and Extend in Python List Methods | Scaler Topics
April 4, 2024 - The append() method in the Python programming language adds an item to a list that already exists whereas the extend() method adds each of the iterable elements which is supplied as a parameter to the end of the original list.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-list-extend-vs-append
Python List Extend vs Append - GeeksforGeeks
July 23, 2025 - Enhanced Readability: The use of extend can enhance code readability by clearly indicating the intention to concatenate multiple iterables, making the code more self-explanatory. The append method, on the other hand, is used to add a single ...
๐ŸŒ
TechGeekBuzz
techgeekbuzz.com โ€บ blog โ€บ difference-between-python-list-append-and-extend-method
Difference Between Python List append and extend Method
However, unlike the append() method, the extend() method only accepts an iterable object as a parameter and adds all the elements from that iterable object to the existing list.
๐ŸŒ
Shaalaa
shaalaa.com โ€บ question-bank-solutions โ€บ differentiate-between-append-and-extend-functions-of-list_333565
Differentiate between append() and extend() functions of list. | Shaalaa.com
October 15, 2022 - The append() function takes a single element as an argument and appends it to the list. The argument can be any datatype, even a list. The argument will be added as a single element.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-list-methods-append-vs-extend
Python List Methods โ€“ append( ) vs extend( ) in Python Explained with Code Examples
June 21, 2021 - So if you extend a list of length len1 with a list of length len2 , the length of the list on which the extend() method is called is len1 + len2. What if we wish to add a single item and not the entire list (or any iterable) to our existing list? In the following example, let's add the boolean value True to list_1 using append()as shown below.
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ list
Python List (With Examples)
December 30, 2025 - For example, fruits = ['apple', ... List:", fruits) ... The list extend() method method all the items of the specified iterable, such as list, tuple, dictionary or string , to the end of a list....