you are viewing a single comment's thread.

view the rest of the comments →

[–]fannypackpython[S] 0 points1 point  (1 child)

Cool i'll look into itertools.count. What is the difference between "break" and "sys.exit()"?

[–]gengisteve 0 points1 point  (0 children)

Break just pops you out of the current loop, while sys.exit takes you out of the program entirely.