Finish the countdown · Завершить обратный отсчет
Finish the countdown
The loop prints count, but nothing ever changes it — so it would never end. Add the one line that takes 1 off count, inside the loop.
A while loop keeps going for as long as its question is true. Something inside it has to move count towards 0, or the answer stays True for ever. That line is indented under the while, like the print above it.
Завершите обратный отсчёт
Цикл выводит count, но ничего его не изменяет — поэтому он бы никогда не завершился. Добавьте одну строку, которая вычитает 1 из count, внутри цикла.
Цикл while продолжается до тех пор, пока его условие истинно. Что-то внутри должно двигаться count к 0, иначе ответ останется True навсегда. Эта строка отступлена под while, как и print над ней.
The loop prints count, but nothing ever changes it — so it would never end. Add the one line that takes 1 off count, inside the loop. It should print 3, 2, 1. · Цикл печатает ⟨count⟩, но ничего его не меняет — поэтому он бы никогда не завершился. Добавьте одну строку, которая вычитает ⟨1⟩ из ⟨count⟩ внутри цикла. Он должен напечатать ⟨3⟩, ⟨2⟩, ⟨1⟩.
Click Run to see the output here. · Нажмите Запустить, чтобы увидеть результат здесь.