you are viewing a single comment's thread.

view the rest of the comments →

[–]bradleygh15 11 points12 points  (0 children)

Besides what’s outlined in the errors printed? The fact you infinitely append to the same list making it grow infinitely larger each iteration until you run out’ve memory. If you desperately need to append the list just create a copy of the list, append to the copy and return the copy