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

Name a block of code

  • A function is named code you can use again and again.
  • Make one with def name(): and an indented body.
  • "Calling" the function by its name runs that code.
עברית

הגדר בלוק קוד

  • פונקציה היא קוד שמקבל שם וניתן להשתמש בו שוב ושוב.
  • צור אחד עם def name(): וגוף מוזח.
  • "קריאה" לפונקציה בשמה מפעילה את הקוד הזה.

Handout · ⁨חומר עזר⁩

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

IGCSE, A-Level & AP