r/learnpython • u/Immediate_Pin_8449 • Oct 12 '26
Tuples..I don’t get it
Hi crew, I’m a Python newbie and I just learned about the concept of tuples.
We can’t change them.if we want to store we have to start at the index we want + 1.
I just don’t get it. Why wouldn’t we just use lists? When would we ever need this?
99
Upvotes
View all comments
Show parent comment
2
u/Patman52 Oct 14 '26
Oh I have first hand experience related to this.
Was passing x, y, z coordinates as lists for positions of 3D models in a 3D printing application.
Could not figure out why each subsequent model position was not where it was supposed to be.
Turns out the function I was passing the same coordinates to was mutating the x, y and z positions each time I passed it.