Skip to content · ⁨דלג לתוכן⁩

Write one yourself · ⁨כתוב אחת בעצמך⁩

English

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 בכל מסלול. כל מסלול חייב להחזיר משהו.

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP