Skip to content · ⁨Перейти к содержанию⁩

Finish the countdown · ⁨Завершить обратный отсчет⁩

English

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 над ней.

Log in or create account · ⁨Войти или создать аккаунт⁩

IGCSE, A-Level & AP