Finish the countdown · أنهِ العد التنازلي
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، لكن شيئًا لا يغيرها أبدًا — لذا لن تنتهي أبداً. أضف السطر الذي يأخذ 1 من count، داخل الحلقة.
حلقة while تستمر طالما أن سؤالها صحيح. يجب أن يكون هناك شيء بداخلها يُقرب count نحو 0، وإلا سيظل الجواب True إلى الأبد. هذا السطر مُزاح تحت while، مثل print أعلاه.
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. · الحلقة تطبع count، لكن شيئًا ما لا يغيرها — لذا لن تنتهي أبدًا. أضف السطر الذي يطرح 1 من count، داخل الحلقة. يجب أن تطبع 3، 2، 1.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.