r/learnpython • u/Immediate_Pin_8449 • 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?
100
Upvotes
View all comments
Show parent comment
9
u/NerdyWeightLifter Oct 13 '26
In larger more complex applications, immutability becomes an important guarantee. You have a reference to a list of items in the form of a reference to a tuple, and you can just assume that nothing will change the content of your tuple, because they just can't.
That's the broader case of the dict example.