Skip to content · ⁨Pular para o conteúdo⁩

Finish the countdown · ⁨Finalizar a contagem regressiva⁩

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.

Português

Termine a contagem regressiva

O loop imprime count, mas nada muda — então nunca terminaria. Adicione a única linha que subtrai 1 de count, dentro do loop.

Um loop while continua enquanto sua condição for verdadeira. Algo dentro dele tem que mover count em direção a 0, senão a resposta fica True para sempre. Essa linha está indentada sob o while, assim como o print acima dele.

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP