Write one yourself · כתוב אחת בעצמך
Write one yourself
Write biggest(a, b) that gives back the larger of the two numbers. Do not use max.
Now all three parts are yours: the def line with its two names, an if/else inside it, and a return on each path. Every path must return something.
כתוב אחת בעצמך
כתוב biggest(a, b) שמחזיר את המספר הגדול יותר משני המספרים. אל תשתמש ב-max.
עכשיו כל שלושת החלקים שלך: שורת ה-def עם שני השמות שלה, פנימה therea if/else, ו-return בכל מסלול. כל מסלול חייב להחזיר משהו.
Write biggest(a, b) that gives back the larger of the two numbers. Do not use max. · כתוב biggest(a, b) שמחזיר את המספר הגדול יותר משני המספרים. אל תשתמש ב-max.
Click Run to see the output here. · לחץ על הרץ כדי לראות את התוצא כאן.