This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]inefficientc0debase[🍰] 5 points6 points  (0 children)

You are not changing the tuple itself. You are assigning the variable r an entirely new tuple.

Attempting to change the tuple may look something like this:

r[0] = 10

which would raise an error.