Видео лекция: Цикл While
Что в итоге:
while выражение:
Тело while
x = 0
while x < 10:
x = x + 1
print(x)
else:
print("Stop")
counter = 0
while counter < 3:
print("Внутри цикла while")
counter = counter + 1
else:
print("Внутри блока else")