The bigger one · הגדול יותר
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · עמוד זה דורש דפדפן עדכני (תומך ב-SharedArrayBuffer). אנא עדכן את Chrome, Edge, Firefox או Safari לגרסה העדכנית ביותר.
This one builds on a lesson you haven't finished yet. Do that lesson first: · תרגיל זה מתבסס על שיעור שעדיין סיימת. סיים את השיעור תחילה:
Python Basics · בסיסי Python · Functions · פונקציות →
English
The bigger one
Return the larger of the two. An if can compare them: if a > b, return a, otherwise return b.
עברית
הגדול יותר
החזר הגדול יותר משניים. if יכול להשוות ביניהם: אם a > b, החזר a, אחרת החזר b.
Complete bigger(a, b): return the larger of a and b. · השלם את bigger(a, b): החזר את הגדול ביותר מבין a ו-b.
Click Run to see the output here. · לחץ על הרץ כדי לראות את התוצא כאן.