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 แทนสิ่งที่ผู้เรียกส่งเข้ามา ภายในฟังก์ชันคุณสามารถใช้มันเป็นตัวแปรธรรมดา — body เป็นโค้ดปกติ ที่เยื้องอยู่ใต้ def

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP