Write one yourself · Écrire une fonction vous-même
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.
É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.
Write biggest(a, b) that gives back the larger of the two numbers. Do not use max. · Écrivez biggest(a, b) qui retourne le plus grand des deux nombres. N'utilisez pas max.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.