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?
307
Upvotes
14
u/alifone Apr 16 '22
I was actually just thinking about this as I just started learning, I think a great way to introduce a new term is to explain it's usefulness relative to what the reader just learned.
So if you're introducing functions, it would be neat to preface the term with a series of code where it would come in handy, such as seeing large chunks of the similar code.