Skip to content · ⁨Passer au contenu⁩

The bigger number · ⁨Le plus grand nombre⁩

English

The bigger number

a is 8 and b is 15. Store the bigger of the two in biggest. Do not use max.

A branch can set a variable, not only print. Give biggest a value on both paths, or one path leaves it undefined and Python says NameError.

Français

Le plus grand nombre

a vaut 8 et b vaut 15. Stocker le plus grand des deux dans biggest. Ne pas utiliser max.

Une branche peut assigner une variable, pas seulement afficher. Donner à biggest une valeur sur les deux chemins, sinon un chemin la laissera indéfinie et Python signalera une erreur NameError.

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

IGCSE, A-Level & AP