Back to Python Notes
Topic #38

Add List Items

append, insert and extend grow a list in different ways, each with its own behaviour. Choosing the right one keeps list-building code clean and correct.


Append Items

To add an item to the end of the list, use the append() method:

Example

thislist = ["apple", "banana", "cherry"]
thislist.append("orange")
print(thislist)

Insert Items

To insert a list item at a specified index, use the insert() method.

The insert() method inserts an item at the specified index:

Example

thislist = ["apple", "banana", "cherry"]
thislist.insert(1, "orange")
print(thislist)

Note: As a result of the examples above, the lists will now contain 4 items.


Extend List

To append elements from another list to the current list, use the extend() method.

Example

thislist = ["apple", "banana", "cherry"]
tropical = ["mango", "pineapple", "papaya"]
thislist.extend(tropical)
print(thislist)

The elements will be added to the end of the list.


Add Any Iterable

The extend() method does not have to append lists, you can add any iterable object (tuples, sets, dictionaries etc.).

Example

thislist = ["apple", "banana", "cherry"]
  thistuple = ("kiwi", "orange")
thislist.extend(thistuple)
print(thislist)

Want to go beyond the notes?

Join Coding Now Tech Institute's Python course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Add List Items – FAQs

Quick answers about learning Add List Items in Python.

This free note from Coding Now Tech Institute explains Add List Items in Python — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every Python topic on Coding Now Tech Institute, including Add List Items, is 100% free with no signup required.
With focused practice, most students grasp Add List Items in 1–3 days from these notes; pairing it with Coding Now Tech Institute's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the Coding Now Tech Institute Community (/community) — expert instructors answer within 24 hours.
Call NowEnroll Now