Lompat ke konten
English

Count-controlled loops

  • Iteration means repeating steps.
  • A count-controlled loop repeats a fixed number of times.
  • In Python that is for i in range(n):.

range(1, 5) gives four passes: i is 1, 2, 3, then 4

Lembar Kerja

Masuk atau buat akun

IGCSE, A-Level & AP