Drop links or images here to add them to the editor.

Met range() geef je aan hoe vaak een for-loop herhaald wordt.

for teller in range(3):
    print("Hallo")
print("Klaar!")

Uitvoer:

Hallo
Hallo
Hallo
Klaar!

Getallen afdrukken

for teller in range(10):
    print(teller)

Drukt 0 t/m 9 af (10 waarden, want we tellen in informatica vanaf 0).