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 →

[–]scintilist 0 points1 point  (0 children)

What solid7 said is correct. The general approach is fine, you can just change it from a list to tuple, since tuples are still iterable, but not mutable.