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

Making a choice

  • if runs some code only when a condition is true.
  • The condition is followed by a colon :.
  • The lines that belong to the if are indented (4 spaces).
עברית

ביצוע בחירה

  • if מפעיל קוד רק כאשר תנאי מתקיים.
  • לאחר התנאי נמצא נקודה ופסקה :.
  • השורות השייכות לif מוזזות (4 רווחים).

Handout · ⁨חומר עזר⁩

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

IGCSE, A-Level & AP