ENع
الدرس 09 · First steps in code

Functions: reusable steps

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A function is a set of steps with a name. You write the steps once with def, then run them whenever you need them by calling the name. Step through a two-line function, area(w, h), called twice, and watch where Python goes: into the function, back out with an answer, and what happens to its local variables along the way.

10 دقيقة10 خطوات5 أسئلةBeginner
شكل 9 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.