Skip to content · ⁨Passer au contenu⁩

Finish the countdown · ⁨Terminez le compte à rebours⁩

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.

Français

Terminer le compte à rebours

La boucle imprime count, mais rien ne la change jamais — elle ne se terminerait donc jamais. Ajoutez la seule ligne qui retire 1 de count, à l'intérieur de la boucle.

Une boucle while continue tant que sa question est vraie. Quelque chose à l'intérieur doit rapprocher count de 0, sinon la réponse reste True pour toujours. Cette ligne est indentée sous le while, comme le print au-dessus.

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP