Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu For loop and block?

Dikenal juga sebagai: for loop · block

Definition 16.2 Primary & Middle School Computer Science · Bab 16 — Repeating with for: Turtle Drawings

A for loop repeats some lines a given number of times. for i in range(4): repeats four times the lines written under it, moved four spaces to the right. Those lines form the loop’s block: the lines that are indented the same way under a line that ends with a colon.

Baca dalam konteks →