🐍 Python Lists for Beginners

📚 Table of Contents

  • What is a List?
  • Creating a List
  • Accessing List Elements
  • Updating List Values
  • Adding Elements
  • Removing Elements
  • List Methods
  • Practice Examples
  • FAQ

💡 Quick Tip

Lists are used when you want to store multiple values in one variable.

⚠️ Common Mistakes

  • Using wrong index number.
  • Forgetting list starts from index 0.
  • Using brackets incorrectly.

✍️ By Roshni Code Charm

📅 July 2026 | ⏱️ 5 min read

🐍 What is a List?

A list is a collection of multiple values stored in a single variable. Lists are ordered and changeable.

Creating a List

fruits = ["Apple","Banana","Mango"]

print(fruits)

Accessing List Elements

List elements are accessed using index numbers. The first index starts from 0.

colors = ["Red","Blue","Green"]

print(colors[0])

Updating List Values

numbers = [10,20,30]

numbers[1] = 50

print(numbers)

Adding Elements

append() method adds a new item at the end of the list.

students = ["Amit","Riya"]

students.append("Rahul")

print(students)

Removing Elements

fruits = ["Apple","Mango"]

fruits.remove("Apple")

print(fruits)

✨ Common List Methods

🚀 Practice Example

skills = ["Python","HTML","CSS"]

print(skills)

skills.append("JavaScript")

print(skills)

❓ Frequently Asked Questions

1. Can a list store different data types?

Yes, a list can store numbers, strings and other data types together.

2. Are Python lists changeable?

Yes, lists are mutable, which means values can be updated.

3. Which brackets are used for lists?

Square brackets [] are used to create lists.