Infinite Loops
Infinite loops in python can be provoked intentionally by the computer programmer, or by mistake, whenever one of the four loop components is not satisfied.
For example, in the following code, the loop will run “forever”
while(True):
print(“Hello forever!”)
The boolean statement True, will “always” be true, triggering the entire loop to run forever. We can control the loop by: