I'm going to put this all in a while loop, and you actually don't need to indent, but this is purely for aesthetic reasons.
Pondré todo esto en un bucle de control, y no es necesario que dejen sangría, es meramente