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 的那一行。

a 和 b 代表调用者传进来的任何值。在函数里面把它们当普通变量用就行 —— 函数体就是普通代码,缩进在 def 下面。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩