How we can come out of an infinite loop in Python?


A loop is said to be an infinite loop when it doesn't stop on its own. It needs to be forcibly stopped by pressing ctrl-C to generate keyboard interrupt.

Updated on: 30-Jul-2019

152 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements