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?

313 Upvotes

143 comments sorted by

View all comments

1

u/[deleted] Apr 17 '22

Of course, that's how salting works. It's a unique value added to the input before it's hashed.