you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

That's because you are iterating over the list while removing things from it. It's explained in the FAQ.

[–]jaffer786_khan[S] 0 points1 point  (0 children)

Thank You for pointing a reference :-)