Skip to content · ⁨דלג לתוכן⁩

Procedures & functions · ⁨פרוצדורות ופונקציות⁩

English

A function is a named block

  • A function is a named block of code you can run again and again.
  • Define it once with def, then call it by name.
  • This avoids repeating yourself and keeps programs tidy.
עברית

פונקציה היא חבילה קוד בעלת שם

  • פונקציה היא חבילת קוד בעלת שם שתוכל להפעיל שוב ושוב.
  • הגדר אותה פעם אחת עם def, ולאחר מכן היא אותה לפי שמה.
  • הדבר מונע חזרה על עצמך ומשמר את התוכניות מסודרות.

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP