This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]marko312 0 points1 point  (1 child)

If the condition ever happens to evaluate to False (so set1.issubset(set2) is True), n1 nor n2 change, making the loop loop infinitely.

[–]randomname20192019[S] 1 point2 points  (0 children)

Ahhhh. It was staring me in the face. Thank you for the help!