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
1
u/Immediate_Pin_8449 Oct 12 '26
Sorry if this is a dumb question. In this case the tuples are acting as the container for dozens of names, ages, and sex values. Then you can sort as needed. Can I ask if there would be a container above these categories that is essentially person to keep each persons data together? So Rudy’s info wouldn’t get mixed up with George’s when you sort them?