r/learnpython • • Oct 12 '26

Tuples..I don’t get it

Hi crew, I’m a Python newbie and I just learned about the concept of tuples.

We can’t change them.if we want to store we have to start at the index we want + 1.

I just don’t get it. Why wouldn’t we just use lists? When would we ever need this?

101 Upvotes

89 comments sorted by

View all comments

Show parent comment

3

u/kilkil Oct 13 '26

yeah actually that's a more general concept that applies to immutable data in general.

it comes from functional programming, where the idea is all data is immutable by default. it really makes a lot of things easier to reason about.

(although of course there are times when you would prefer some mutability. depends on the situation etc)