What happens if we cause an infinite loop?


#1

Question

What happens if we cause an infinite loop?

Answer

Creating a loop that doesn’t end can cause your program, or worse, your environment, to crash or stop responding if not handled properly. In Codecademy, if you create an infinite loop it will likely crash your browser tab and force you to refresh the page to get it working again.


FAQ: Learn Python- Loops - While / else