Skip to content · ⁨コンテンツへスキップ⁩

Finish the function · ⁨関数を完成させる⁩

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.

日本語

関数を完成させる

defの行は書かれています。a + bを返す1行をその中に追加してください。

aとbは呼び出し側が渡すものを表します。関数の内部では通常の変数として使います——本体は simply defの下にインデントされた通常のコードです。

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP