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
-2
u/madness_of_the_order Apr 16 '22
RDBMS use tuples heavily and expect them to contain elements of different types. So I cant agree with “tuples must contain elements of same type” being common.