Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Bucle Infinito | The while Loop
course content

Contenido del Curso

Python Loops Tutorial

Bucle InfinitoBucle Infinito

Infinite loops are loops that lack a False condition. They are unbreakable!

Let's examine two examples!

Check out the code below:

Since 2 + 2 always equals 4, there's no way for the loop to reach a False condition.

Now, observe the code below:

Since 2 is always less than 3, this loop has no exit condition.

Infinite loops are best avoided. If not, they can overwhelm our program and prevent us from obtaining the desired results.

¿Todo estuvo claro?

Sección 2. Capítulo 2
course content

Contenido del Curso

Python Loops Tutorial

Bucle InfinitoBucle Infinito

Infinite loops are loops that lack a False condition. They are unbreakable!

Let's examine two examples!

Check out the code below:

Since 2 + 2 always equals 4, there's no way for the loop to reach a False condition.

Now, observe the code below:

Since 2 is always less than 3, this loop has no exit condition.

Infinite loops are best avoided. If not, they can overwhelm our program and prevent us from obtaining the desired results.

¿Todo estuvo claro?

Sección 2. Capítulo 2
some-alt