Understanding append() Function in Python with Example

Last updated by Abhinav Rawat on Nov 4, 2025 at 12:32 PM
| Reading Time: 3 minutes

Python supports object-oriented programming and has concise, readable, and easy-to-learn syntax. It is no wonder that it is one of the most popular programming languages. The append function in Python is built into the programming language.

It is typically found in the list class and offers ingenious functionality to add new items to the list and introduces flexibility. It also helps enhance the efficiency of the program significantly.

The append in Python is a method that helps attach a single element to the end of an already-existing Python list. There are several benefits of using lists in Python, for instance, it is similar to arrays in other languages. Further, such lists are mutable, meaning that they can be changed and updated even after the list has been created.

In this article, we explain what is the append() function in Python, its syntax, examples, and how to use it.

Also read: Sum Function in Python

What Is the append() Function in Python and What Does Append Do in Python?

The append in Python takes a single item as an input parameter and adds it to the end of the given list. In Python, append() doesn’t return a new list of items; in fact, it returns no value at all. It just modifies the original list by adding the item to the end of the list.

After executing append() on a list, the size of the original list increases by one. The item in the list can be a string, number, dictionary, or even another list (because a list is an object too). When a list is appended to the original list, it is added as a single object. The addition of the appended list happens, as usual, at the end of the original list.

The append() Function in Python: Syntax

list.append(item)

  • Parameters: item is the only parameter append() takes, and it is the item to be added at the end of the list.
  • Returns: append() doesn’t return any value. It just adds the item to the end of the list.

The append() Function in Python: Example

Here, we take a look at how to use the append function in Python next time you need it:

How to Use the append() Function in Python

The append() function in Python adds a single element to the end of a list. It’s used as list. append(element), where list is your list and element is the item you want to add. For example:

Code to Append an Item to the List Using append()

1# Add a string element to the string list:
2stringList = ['mon', 'tue', 'wed', 'thu']
3print(stringList)
4stringList.append('fri')
5print(stringList)
6
7# Add an int element to the string list:
8stringList.append(8)
9print(stringList)
10
11# Add an int element to the int list:
12intList = [0, 2, 4, 6]
13print(intList)
14intList.append(8)
15print(intList)
16
17# Add a string element to the int list:
18intList.append('fri')
19print(intList)

Note: The code is for Python 3.x, but the same code will run in Python 2.x, with just the print syntax changed to print listName instead of print(listName).

Output

['mon', 'tue', 'wed', 'thu']
['mon', 'tue', 'wed', 'thu', 'fri']
['mon', 'tue', 'wed', 'thu', 'fri', 8]
[0, 2, 4, 6]
[0, 2, 4, 6, 8]
[0, 2, 4, 6, 8, 'fri']

Code to Append a List Onto a List Using append()

1# Appending a list as an item onto the original list
2
3stringList = ['mon', 'tue', 'wed', 'thu', 'fri']
4print(stringList)
5
6listToAppend = ['sat', 'sun']
7print(listToAppend)
8
9# Appending listToAppend onto stringList
10stringList.append(listToAppend)
11print(stringList)
12
13# We can access the elements from the appended list in the same way we access elements from a 2-D Matrix.
14print(stringList[5][0])
15print(stringList[5][1])

Output

['mon', 'tue', 'wed', 'thu', 'fri']
['sat', 'sun']
['mon', 'tue', 'wed', 'thu', 'fri', ['sat', 'sun']]
sat
sun

Was this article helpful? You can learn about more Python functions in our learn folder.

Also read: Format Function in Python

Ready to Nail Your Next Coding Interview?

Interview Kickstart’s Early Engineering Interview Masterclass is designed for software engineers who have less than 3 years of experience. This course will boost your career and help you crack the interview.

Whether you’re a coding engineer gunning for a software developer or software engineer role, a tech lead, or you’re targeting management positions at top companies, Interview Kickstart offers courses specifically designed for your needs to help you with your technical interview preparation!

If you’re looking for guidance and help with getting started, sign up for our FREE webinar. As pioneers in the field of technical interview preparation, we have trained thousands of software engineers to crack the toughest coding interviews and land jobs at their dream companies, such as Google, Facebook, Apple, Netflix, Amazon, and more!

Read the Interview Kickstart Reviews and see how we have helped thousands of tech professionals ace their interviews and land their dream jobs.

Our technical interview checklist will help you prepare better for technical interviews. We have curated interview questions that will help you identify and understand the types of questions asked during the interview.

You will get to learn from top FAANG instructors who have experience in hiring for top tech companies.

FAQs on the append() Function in Python

How can we append to a list in Python?
You can use extend(), append(), and itertools.chain() depending on your needs to append to a list in Python.

What’s the difference between the insert() and append() functions in Python?
In Python, insert() allows you to insert an element to the list at any index of your choice. In contrast, append() appends the element only at the end of the list.

What’s the difference between the extend() and append() functions in Python?
Unlike append() in Python, which adds a single element to the end of the list, extend() iterates over its parameter, adds each element to the list and extends the list.

Does append() function in Python make a copy of the list?
No. append() modifies the original list. It does not create a copy of the list.

What parameters does the append() function in Python take, and what does it return?
Python’s append() function takes a single parameter, the item to append. It returns no value or list as it modifies the original list by appending the item at the end of the list.

Related reads:

Last updated on: November 4, 2025
Register for our webinar

Uplevel your career with AI/ML/GenAI

Loading_icon
Loading...
1 Enter details
2 Select webinar slot
By sharing your contact details, you agree to our privacy policy.

Select a Date

Time slots

Time Zone:

Strange Tier-1 Neural “Power Patterns” Used By 20,013 FAANG Engineers To Ace Big Tech Interviews

100% Free — No credit card needed.

Register for our webinar

Uplevel your career with AI/ML/GenAI

Loading_icon
Loading...
1 Enter details
2 Select webinar slot
By sharing your contact details, you agree to our privacy policy.

Select a Date

Time slots

Time Zone:

Ready to Enroll?

Get your enrollment process started by registering for a Pre-enrollment Webinar with one of our Founders.

Next webinar starts in

00
DAYS
:
00
HR
:
00
MINS
:
00
SEC

Register for our webinar

How to Nail your next Technical Interview

Loading_icon
Loading...
1 Enter details
2 Select slot
By sharing your contact details, you agree to our privacy policy.

Select a Date

Time slots

Time Zone:

Almost there...
Share your details for a personalised FAANG career consultation!
Your preferred slot for consultation * Required
Get your Resume reviewed * Max size: 4MB
Only the top 2% make it—get your resume FAANG-ready!

Registration completed!

🗓️ Friday, 18th April, 6 PM

Your Webinar slot

Mornings, 8-10 AM

Our Program Advisor will call you at this time

Register for our webinar

Transform Your Tech Career with AI Excellence

Transform Your Tech Career with AI Excellence

Join 25,000+ tech professionals who’ve accelerated their careers with cutting-edge AI skills

25,000+ Professionals Trained

₹23 LPA Average Hike 60% Average Hike

600+ MAANG+ Instructors

Webinar Slot Blocked

Register for our webinar

Transform your tech career

Transform your tech career

Learn about hiring processes, interview strategies. Find the best course for you.

Loading_icon
Loading...
*Invalid Phone Number

Used to send reminder for webinar

By sharing your contact details, you agree to our privacy policy.
Choose a slot

Time Zone: Asia/Kolkata

Choose a slot

Time Zone: Asia/Kolkata

Build AI/ML Skills & Interview Readiness to Become a Top 1% Tech Pro

Hands-on AI/ML learning + interview prep to help you win

Switch to ML: Become an ML-powered Tech Pro

Explore your personalized path to AI/ML/Gen AI success

Your preferred slot for consultation * Required
Get your Resume reviewed * Max size: 4MB
Only the top 2% make it—get your resume FAANG-ready!
Registration completed!
🗓️ Friday, 18th April, 6 PM
Your Webinar slot
Mornings, 8-10 AM
Our Program Advisor will call you at this time

Get tech interview-ready to navigate a tough job market

Best suitable for: Software Professionals with 5+ years of exprerience
Register for our FREE Webinar

Next webinar starts in

00
DAYS
:
00
HR
:
00
MINS
:
00
SEC

Your PDF Is One Step Away!

The 11 Neural “Power Patterns” For Solving Any FAANG Interview Problem 12.5X Faster Than 99.8% OF Applicants

The 2 “Magic Questions” That Reveal Whether You’re Good Enough To Receive A Lucrative Big Tech Offer

The “Instant Income Multiplier” That 2-3X’s Your Current Tech Salary