Skip to content · ⁨Lompat ke konten⁩

Finish the countdown · ⁨Selesaikan hitungan mundur⁩

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.

Bahasa Indonesia

Selesaikan hitungan mundur

Loop mencetak count, tetapi tidak ada yang mengubahnya — jadi loop itu tidak akan pernah berakhir. Tambahkan satu baris yang mengurangi 1 dari count, di dalam loop.

Loop while terus berjalan selama pertanyaannya benar. Sesuatu di dalamnya harus menggeser count menuju 0, atau jawabannya tetap True selamanya. Baris tersebut disisipkan di bawah while, seperti print di atasnya.

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP