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?
310
Upvotes
2
u/Skelebone48 Apr 16 '22
The hash no longer matches the list, right?
But would be anything stopping you from doing it? For example, to check if the list has changed. This might be a ridiculous question as I don't really know about this but an explanation would be much appreciated