Finish the countdown · Finalizar a contagem regressiva
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.
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.
The loop prints count, but nothing ever changes it — so it would never end. Add the one line that takes 1 off · desligado count, inside the loop. It should print 3, 2, 1. · O loop imprime count, mas nada nunca muda — então ele nunca terminaria. Adicione a única linha que subtrai 1 de count, dentro do loop. Ela deve imprimir 3, 2, 1.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.