跳到主要内容

Lesson 2: Loops draw shapes

English

Let a loop repeat

  • The square had the same two lines four times.
  • A for loop repeats them for you.

Words for this lesson

Word Meaning
loop code that runs again and again
repeat do the same thing one more time
indent the spaces at the start of a line inside the loop

登录或创建账户

IGCSE, A-Level & AP