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
1
u/Jhawn_Pedro Apr 17 '22
That's probably why "bytes" managed to hang on in Python 2.x; even though it was exactly the same as "str" during the time, it helped improve code readability a lot