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 & AP