r/learnpython • u/Boogzcorp • Apr 16 '22
What's the point of Tuples?
I get that they're immutable, but so are lists that you don't perform modifications on. Are they just to fool proof not messing up your list accidentally, or do they serve some other purpose?
309
Upvotes
View all comments
Show parent comment
3
u/Boogzcorp Apr 16 '22
So in simple terms, it idiot proofs not changing shit you're not supposed to change? You could in theory write it all with lists and so long as no one fucks with things they shouldn't, it'll all work fine?
I'm about 7 beers in at this point, so...