Skip to content · ⁨Passer au contenu⁩

Finish the function · ⁨Terminer la fonction⁩

English

Finish the function

The def line is written. Add the one line inside it that gives back a + b.

a and b stand for whatever the caller passes in. Inside the function you use them as ordinary variables — the body is just normal code, indented under the def.

Français

Terminer la fonction

La ligne def est écrite. Ajoutez la seule ligne à l'intérieur qui renvoie a + b.

a et b représentent n'importe quoi que l'appelant passe. À l'intérieur de la fonction, vous les utilisez comme des variables ordinaires — le corps est simplement du code normal, indenté sous la def.

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

IGCSE, A-Level & AP