The actual reason why you can't do either of the following,

l = [].append(2)
l = [2,3,4].append(1)

is because .append() always returns None as a function return value. .append() is meant to be done in place.

See here for docs on data structures. As a summary, if you want to initialise a value in a list do:

l = [2]

If you want to initialise an empty list to use within a function / operation do something like below:

l = []
for x in range(10):
    value = a_function_or_operation()
    l.append(value)

Finally, if you really want to do an evaluation like l = [2,3,4].append(), use the + operator like:

l1 = []+[2]
l2 = [2,3,4] + [2]
print l1, l2
>>> [2] [2, 3, 4, 2]   

This is generally how you initialise lists.

Answer from Alexander McFarlane on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ append-element-to-an-empty-list-in-python
Append Elements to Empty List in Python - GeeksforGeeks
July 23, 2025 - In Python, lists are used to store multiple items in one variable. If we have an empty list and we want to add elements to it, we can do that in a few simple ways. The simplest way to add an item in empty list is by using the append() method.
Discussions

Append to empty list in python - Stack Overflow
I'm pretty new to Python and have a task where I am supposed to iterate through a sorted list to find the place where to insert an element into the list at the right place. So far I have managed to... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to append elements from input to empty list in python - Stack Overflow
Read more about Python dictionaries here. ... Save this answer. ... Show activity on this post. ... Copydef passanger_list(passangerInput, pp): if passangerInput: pp.append(passangerInput) return pp pp = [] pp = passanger_list( input("what is your passanger name?"), pp ) print("passangers:", pp) Also, you might want to ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Can I create an empty list, and at the same time append something to it?
Convert your some calculations to a function involving the key and the value And then use list comprehension my_list = [ key for key , value in my_dict.items() if func(key, value)] More on reddit.com
๐ŸŒ r/learnpython
8
1
September 24, 2022
Adding items to an empty list
my_list = []
my_list.append("dog")
my_list.append("cat")
# And so forth

You can add those to your list as your program runs instead of just printing them out.

More on reddit.com
๐ŸŒ r/learnpython
8
5
May 24, 2018
๐ŸŒ
DataCamp
datacamp.com โ€บ home โ€บ tutorials โ€บ python โ€บ a comprehensive guide to python empty lists
A Comprehensive Guide to Python Empty Lists | DataCamp
February 2, 2024 - A drawback of .append() is that it only adds elements at the end of a list โ€” this means that we have no control over where exactly to insert a new element when using .append(). The .insert() method, on the other hand, allows us to do exactly that. Here we pick up the example from the previous section and insert โ€™Trulyโ€™ between โ€™Pythonโ€™ and โ€™Rocks!โ€™. Note that Python uses zero-based indexing, which means that the index of the first element of the list is 0. Check out the example for more details: # Initialize an empty list my_list = [] # Append elements my_list.append('Python') my_list.append('Rocks!') my_list.append('Itโ€™s easy to learn!') # `my_list` is now ['Python', 'Rocks!', 'Itโ€™s easy to learn!'] # Showcase zero-based indexing in Python my_list[0] # Returns 'Python' my_list[1] # Returns 'Rocks' my_list[2] # Returns 'It's easy to learn!'
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ add-values-into-an-empty-list-from-python-for-loop
Add Values into Empty List Using For Loop - Python - GeeksforGeeks
July 23, 2025 - # Create an empty list a = [] # Initialize the counter i = 0 # Use a while loop to add values while i < 5: a.append(i) i += 1 # Print the list print(a)
๐ŸŒ
Statistics Globe
statisticsglobe.com โ€บ home โ€บ python programming language for statistics & data science โ€บ append to empty list in python (3 examples)
How to Append Elements to Empty List in Python (3 Examples)
June 19, 2023 - my_list = my_list + [1, 2, 3] # append 1, 2 and 3 print(my_list) # print my_list # [1, 2, 3] Now, our list is updated by the given values. You can also prefer to save the result under a new object name and keep my_list empty. Do you need further information on the topics of this article? Then I recommend watching the following video on my YouTube channel. In the video, I demonstrate the Python programming codes of this post in Python.
๐ŸŒ
Python Guides
pythonguides.com โ€บ add-elements-to-an-empty-list-in-python
How to Add Elements to an Empty List in Python?
March 19, 2025 - Check out How to Select Items from a List in Python? If you have another list and want to add all its elements to the empty list, you can use the extend() method. You can append to a list that is empty using the extend() method in Python.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-empty-list-tutorial-how-to-create-an-empty-list-in-python
Python Empty List Tutorial โ€“ How to Create an Empty List in Python
June 18, 2020 - You can create an empty list using an empty pair of square brackets [] or the type constructor list(), a built-in function that creates an empty list when no arguments are passed.
Find elsewhere
๐ŸŒ
Altcademy
altcademy.com โ€บ blog โ€บ how-to-create-an-empty-list-in-python
How to create an empty list in Python - Altcademy.com
June 13, 2023 - The append() method is used to add an element to the end of a list. This is the most straightforward way to add elements to a list, especially if you want to maintain the order ...
๐ŸŒ
Hyperskill
hyperskill.org โ€บ university โ€บ python โ€บ append-method-in-python
Python list.append() โ€” How to Add Items to a List (Examples)
August 10, 2026 - This code generates numbers 1, 2, and 3 and appends them to my_list. To add elements dynamically, initialize an empty list and use the append method to add elements as needed:โ€
๐ŸŒ
Real Python
realpython.com โ€บ python-append
Python's .append(): Add Items to Your Lists in Place โ€“ Real Python
March 18, 2026 - One common use case of .append() is to completely populate an empty list using a for loop. Inside the loop, you can manipulate the data and use .append() to add successive results to the list.
๐ŸŒ
Python Help
pythonhelp.org โ€บ python-lists โ€บ how-to-add-to-an-empty-list-in-python
How to add elements to an empty list in Python
October 12, 2023 - Creating an Empty List We can create an empty list in python using square brackets [] like so: ... Adding Elements to a List To add elements to a list, you use append method or extend method or the plus (+) operator for lists of single items.
๐ŸŒ
MakeUseOf
makeuseof.com โ€บ home โ€บ programming โ€บ how to append a list in python
How to Append a List in Python
February 4, 2021 - You can use Python's append list method to create an entirely new set of data and then drop it in an empty list.
๐ŸŒ
iO Flood
ioflood.com โ€บ blog โ€บ python-empty-list-guide-to-using-empty-lists-in-python
Python Empty List | Guide to Using Empty Lists in Python
June 27, 2024 - Once youโ€™ve created an empty list, you can add items to it. Python offers several methods to accomplish this, such as .append(), .insert(), and .extend().
๐ŸŒ
Pierian Training
pieriantraining.com โ€บ home โ€บ how to create an empty list in python
How to Create and Use an Empty List in Python
April 27, 2023 - Another way to create an empty ... empty list object. ... Like before, you can also add items to this new empty list with .append()....
๐ŸŒ
EDUCBA
educba.com โ€บ home โ€บ software development โ€บ software development tutorials โ€บ python tutorial โ€บ python empty list
Python Empty List | How to Declare Empty List with Examples
April 13, 2023 - Explanation: In the above program, ... an empty list by using square brackets with the variable as โ€œlโ€ then we have added elements by using the append() function, insert() function, which added the element at 0th and 2nd position of the ...
Address: Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
๐ŸŒ
Finxter
blog.finxter.com โ€บ home โ€บ learn python blog โ€บ 5 best ways to append a tuple to an empty list in python
5 Best Ways to Append a Tuple to an Empty List in Python - Be on the Right Side of Change
February 22, 2024 - For example, given an empty list ... the list to get [(1, 2, 3)] as the result. The append() function is the most straightforward way to add an element to the end of a list in Python....
๐ŸŒ
Onextdigital
onextdigital.com โ€บ empty-list-python
Empty list python: How to make and remove it
July 19, 2023 - Now that we&#8217;ve built an empty list in Python, let&#8217;s add some items to it using the append() function.