Infinite loop

  • Sprouting
  • c.

In programming, an infinite loop is created when a sequence has one or more of the following attributes:

  1. no termination condition
  2. a termination condition that can never be met
  3. a termination condition causing the loop to restart

Example

A “while loop” where its condition is always met and has no termination condition.

while True:
pass

Backlinks