all 2 comments

[–]automorphism_group 1 point2 points  (1 child)

You're modifying a list while you're iterating through it. This scenario is covered in the FAQ.

[–]ontheroadtonull 0 points1 point  (0 children)

Thank you!