liveBook · Manning

Infinite loop

An infinite loop is a control-flow cycle that continues without reaching a normal termination point unless an exit condition or external intervention stops it.

How 3 Manning books explain it

Python Workout: 50 ten-minute exercises

A loop whose condition remains true until an explicit control-flow operation exits it.

How it is used
Uses repeated interactive input until a correct answer, valid record, or explicit break ends processing.
How deep it goes
Explains while True, break, continue, validation, and input conversion through two worked interactive programs.
Examples
Demonstrates number guessing with random.randint and rainfall collection with dictionary updates.
What you can do after
Apply it via Python to build interactive loops with explicit exits and retry paths for invalid input.

Read how Python Workout: 50 ten-minute exercises explains infinite loop →

100 Java Mistakes and How to Avoid Them

An infinite loop is a loop whose execution continues indefinitely because its termination condition is never reached or satisfied.

How it is used
Warns against loop constructs that fail to make progress or reach a terminating condition.
How deep it goes
Explains counter mix-ups, idempotent bodies, overflow, tests, fixes, and static-analysis limits without broader overflow internals.
Examples
Uses nested counters, unique-ID suffix generation, format-string scanning, array normalization, and inclusive maximum-bound iteration.
What you can do after
Diagnose/debug with it by tracing whether each iteration changes termination-relevant state and testing maximum-bound corner cases.

Read how 100 Java Mistakes and How to Avoid Them explains infinite loop →

Python Workout, Second Edition

An infinite loop is a loop whose condition remains true so that execution continues until an explicit exit changes the control flow.

How it is used
Deploys repeated user interaction for guessing games and accumulating rainfall data until an explicit termination event occurs.
How deep it goes
Explains while True, break, continue, input conversion, and a transformation-related failure mode, but stops short of loop internals.
Examples
Uses a number-guessing loop, a rainfall dictionary tracker, and a Ubbi Dubbi character transformation.
What you can do after
Apply it via Python while True, break, and continue to build interactive loops with explicit termination and input validation.

Read how Python Workout, Second Edition explains infinite loop →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.