Count to ten · Contar hasta diez
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.
Contar hasta diez
Imprime los números enteros del 1 al 10, cada uno en su propia línea.
Un bucle for repite sus líneas indentadas una vez por cada valor que recibe. range(1, 4) genera 1, 2, 3: se detiene antes de su segundo número, así que elige ese número con cuidado.
Use a for loop to print the numbers 1 to · hasta 10, one per line. · Usa un bucle for para imprimir los números del 1 al 10, uno por línea.
Click Run to see the output here. · Haz clic en Ejecutar para ver la salida aquí.