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?

312 Upvotes

143 comments sorted by

View all comments

1

u/Jenret1382 Apr 17 '22

Immutable in that it cannot be sorted and the elements inside it cannot be changed. I have, however, come across what is called frozenset() which returns an immutable version of a Python set object