List vs Tuple in Python — Key Differences

Lists are mutable and tuples are immutable — that single difference drives when to use each, plus performance and use-as-dict-key implications.

Published September 17, 2026

Lists are mutable, tuples are immutable. Use a list for a collection you will change, and a tuple for a fixed group of values such as coordinates or a database row.

The concept

A list can grow, shrink and have items replaced after creation. A tuple cannot be changed once built, which makes it safe to share, hashable (so usable as a dictionary key) and slightly smaller in memory.

Both are ordered, indexable and can hold mixed types. The convention: lists hold many things of the same kind; tuples hold a few things of different kinds in a fixed position.

Mutability test

items = [1, 2, 3]; items[0] = 99
[99, 2, 3]
point = (1, 2); point[0] = 99
TypeError: 'tuple' object does not support item assignment

Practical examples

List: a changing collection

todo = ['write', 'test']
todo.append('deploy')

Tuple: fixed record and unpacking

user = ('Ada', 36)
name, age = user

Tuple as a dict key

grid = {(0, 0): 'start', (2, 3): 'goal'}
grid[(2, 3)]  # 'goal'

Common mistakes

  • Writing (5) and expecting a tuple — a one-item tuple needs a comma: (5,).
  • Using a list as a dict key (TypeError: unhashable).
  • Assuming a tuple holding a list is fully immutable; the inner list can still change.

Key takeaways

  • List = mutable, tuple = immutable.
  • Tuples are hashable and lighter.
  • Single-item tuple needs a trailing comma.

FAQ

Which is faster?

Tuples are marginally faster to create and iterate, but choose by meaning, not speed.

Can I convert between them?

Yes: list(t) and tuple(l).

More Python articles