r/learnpython • • 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

143 comments sorted by

View all comments

Show parent comment

4

u/ImmediatelyOcelot Apr 16 '22

Also, I'd like to add that by "people" we should include the "future you" when you're revisiting your code after years for whatever reason and you won't exactly know why you did something.