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

Contenido del Curso

Python Loops Tutorial

Pass, Else in a while LoopPass, Else in a while Loop

Allow me to remind you that the pass statement is a null statement. When executed, it results in no action.

Examine the code below:

Additionally, as a reminder, in Python, a loop can include the else block, which executes when the loop terminates under normal conditions.

Examine the code below:

Tarea

Fill in the gaps with while, pass, and else.

¿Todo estuvo claro?

Sección 2. Capítulo 6
toggle bottom row
course content

Contenido del Curso

Python Loops Tutorial

Pass, Else in a while LoopPass, Else in a while Loop

Allow me to remind you that the pass statement is a null statement. When executed, it results in no action.

Examine the code below:

Additionally, as a reminder, in Python, a loop can include the else block, which executes when the loop terminates under normal conditions.

Examine the code below:

Tarea

Fill in the gaps with while, pass, and else.

¿Todo estuvo claro?

Sección 2. Capítulo 6
toggle bottom row
some-alt