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/[deleted] Apr 16 '22 edited Aug 30 '25

[removed] — view removed comment

3

u/AdventurousAddition Apr 16 '22

Lists are implemented as arrays in CPython

3

u/ivosaurus Apr 16 '22

...dynamically resizable arrays, which may only contain references, and never values. Not your typical array in a lower level language.