Course Content
Python Loops Tutorial
Python Loops Tutorial
Pass, Else in a while Loop
Let me remind you that the pass
statement is a null statement. Nothing happens when the statement is executed.
Look at the code below:
Also as a reminder, in Python, a loop can have the else
block, which will be executed when the loop terminates normally.
Look at the code below:
Task
- Fill the gaps with
while
,pass
, andelse
.
Everything was clear?
Section 2. Chapter 6