Skip to content · ⁨Passer au contenu⁩

Write one yourself · ⁨Écrire une fonction vous-même⁩

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.

Français

Écrivez-en une vous-même

Écrivez biggest(a, b) qui retourne le plus grand des deux nombres. N'utilisez pas max.

Maintenant, les trois parties vous appartiennent : la ligne def avec ses deux noms, un if/else à l'intérieur, et un return sur chaque chemin. Chaque chemin doit renvoyer quelque chose.

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP