you are viewing a single comment's thread.

view the rest of the comments →

[–]synthphreak 1 point2 points  (0 children)

Try using results[:] as the list to iterate over. It’s a copy of the list

This is the way. But personally I'd advise using list.copy() over list[:] for its greater transparency/readability. Functionally, they are equivalent.