Finish the function · Terminer la fonction
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.
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.
The · Le def line is written. Add the one line inside it that gives back a + b. · La ligne def est écrite. Ajoutez la seule ligne à l'intérieur qui renvoie a + b.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.