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. · לחץ על הרץ כדי לראות את התוצא כאן.