I know how to do this, it just crashes my computer


The loop in the editor has two problems: it’s missing a colon (a syntax error) and count is never incremented (logical error). The latter will result in an infinite loop, so be sure to fix both before running!

When I tried running the code after putting a colon, it put in 0’s forever, but my computer started to go crazy. I couldn’t click on anything, not even close the browser. When I rebooted my computer, it was still not completed because I kept putting a colon and it still crashed. How do I fix this?


Please post a link to the exercise and perhaps we may be able to advise further.

Are we talking about this lesson?

Infinite loops


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.