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