Count to ten · Compter jusqu'à dix
Count to ten
Print the whole numbers from 1 to 10, each on its own line.
A for loop repeats its indented lines once for every value it is given. range(1, 4) gives 1, 2, 3: it stops before its second number, so choose that number with care.
Compter jusqu'à dix
Affichez les nombres entiers de 1 à 10, chacun sur sa propre ligne.
Une boucle for répète ses lignes indentées une fois pour chaque valeur qu'on lui donne. range(1, 4) donne 1, 2, 3 : elle s'arrête avant son deuxième nombre, alors choisissez ce nombre avec soin.
Use a for loop to print the numbers 1 to · à 10, one per line. · Utilisez une boucle for pour imprimer les nombres 1 à 10, un par ligne.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.