Python – Add List Items

1. What Does “Add List Items” Mean?

Adding list items means putting new values into a list.

Lists in Python are changeable, so we can easily add new items.

2. Add an Item Using append()

append() adds an item at the end of the list.

Example

fruits = ["apple", "banana"]

fruits.append("orange")
print(fruits)

Output:

['apple', 'banana', 'orange']

3. Add an Item at a Specific Position (insert())

insert() adds an item at a given position (index).

Example

fruits.insert(1, "mango")
print(fruits)

Output:

['apple', 'mango', 'banana', 'orange']

4. Add Multiple Items (extend())

extend() adds many items to the list.

Example

more_fruits = ["grape", "papaya"]
fruits.extend(more_fruits)
print(fruits)

5. Add Items from Another List

You can also add items from one list to another.

Example

list1 = [1, 2]
list2 = [3, 4]

list1.extend(list2)
print(list1)

6. Add Items Using + Operator

The + operator joins two lists and creates a new list.

Example

a = [10, 20]
b = [30, 40]

c = a + b
print(c)

7. Add Items Using Loop

You can add items one by one using a loop.

Example

numbers = []

for i in range(3):
numbers.append(i)

print(numbers)

8. Common Beginner Mistakes

❌ Using append() with Multiple Items

fruits.append("apple", "banana")

❌ Error.

✔ Correct:

fruits.extend(["apple", "banana"])

❌ Wrong Index in insert()

fruits.insert(10, "kiwi")

This will add item at the end, not error.

9. Simple Practice Examples

Example 1: Add City

cities = ["Delhi", "Mumbai"]
cities.append("Kolkata")
print(cities)

Example 2: Add at Beginning

cities.insert(0, "Chennai")
print(cities)

Example 3: Add Many Numbers

nums = [1, 2]
nums.extend([3, 4, 5])
print(nums)

10. Summary (Add List Items)

append() adds one item
insert() adds at position
extend() adds many items
+ joins two lists
✔ Lists are changeable

📘 Perfect for Beginner eBook

This chapter is ideal for:

  • Python beginner books

  • School & college students

  • Self-learners

If you want next, I can write:

  • Remove List Items

  • List Methods (full)

  • List Exercises

  • Tuples

  • Sets

Just tell me 😊

You may also like...