Finish the countdown · Selesaikan hitungan mundur
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.
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.
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. It should print 3, 2, 1. · Perulangan mencetak count, tetapi tidak ada yang mengubahnya — jadi tidak akan pernah berakhir. Tambahkan satu baris yang mengurangi 1 dari count, di dalam perulangan. Seharusnya mencetak 3, 2, 1.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.