Skip to content · ⁨Passer au contenu⁩
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).
Français

Faire un choix

  • if exécute du code uniquement lorsque une condition est vraie.
  • La condition est suivie d'un deux-points :.
  • Les lignes qui appartiennent au if sont indentées (4 espaces).

Handout · ⁨Fiche de cours⁩

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP