본문 바로가기

Nested loops & 2-D lists

English

A loop inside a loop

  • You can put one loop inside another loop.
  • For every pass of the outer loop, the inner loop runs fully.
  • So an outer of 2 and an inner of 3 runs the body 2 × 3 = 6 times.

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP