Skip to content

Finish the countdown · ⁨把倒数补完⁩

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.

中文

把倒数补完

循环会打印 count,但没有任何地方改变它 —— 所以它永远不会结束。在循环里补上把 count 减 1 的那一行。

while 循环只要它的问题还成立就会一直跑。里面必须有什么东西让 count 朝 0 靠近,否则答案永远是 True。那一行要缩进在 while 下面,和上面的 print 一样。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩