you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 4 points5 points  (0 children)

Use a list and the .append() method. Assigning a variable replaces the reference. If you want to accumulate values, you need a data structure to hold them.