Python Lists in Python

Updated on June 2, 2025 | By Learnzy Academy

A list in Python is a built-in, ordered, and mutable collection used to store multiple items in a single variable.

Key Characteristics of Lists:

  1. Ordered: Items in a list maintain their order; indexing starts from 0.
  2. Mutable: You can change, add, or remove elements after the list is created.
  3. Heterogeneous: Lists can contain elements of different data types (e.g., strings, integers, floats, other lists, etc.).
  4. Dynamic: Lists can grow or shrink in size as needed.

Example:-

fruits = ["apple", "banana", "cherry"]
numbers = [1, 2, 3, 4, 5]
mixed = ["hello", 42, 3.14, True]
empty = []
Click here to download practice questions on Python Lists