본문 바로가기

Hunt 2: Colons and spaces

English

Colons and spaces

  • Python uses a colon : and spaces to see which lines belong together.
  • One missing colon or two extra spaces, and the program stops.
  • Some bugs give no error: the program runs, but does the wrong thing. Run it and compare.
Word Meaning
indent spaces at the start of a line
block the indented lines after a :

로그인 또는 계정 만들기

IGCSE, A-Level & AP