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.

raja
Updated on 30-Jul-2019 22:30:21

Advertisements