Bucles
Un bucle repite una accion.
Ejemplo
for i in range(3):
print(i)
Eso imprime:
- 0
- 1
- 2
Para que sirve
Sirve cuando quieres hacer algo muchas veces sin copiar el mismo codigo.
Idea simple
Un bucle es como decir: "haz esto otra vez hasta que termine."