Pass or fail
עמוד זה דורש דפדפן עדכני (תומך ב-SharedArrayBuffer). אנא עדכן את Chrome, Edge, Firefox או Safari לגרסה העדכנית ביותר.
תרגיל זה מתבסס על שיעור שעדיין סיימת. סיים את השיעור תחילה:
בסיסי Python · קבלת החלטות →
English
Pass or fail
Read a whole number mark with int(input()) (for example 47). Print pass when the mark is 50 or more, and fail otherwise.
else catches everything the if did not. It takes no condition of its own — just else: — and its own indented line underneath.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Read a whole number mark with int(input()) (for example 47). Print pass when the mark is 50 or more, and fail otherwise.
לחץ על הרץ כדי לראות את התוצא כאן.