Post

@PythonPr the cycle "for" hasn't an else clause, the "end" clause joins the results without spaces, in this case; then Python prints X ignoring the else: so,
012X
English

@PythonPr for in range(3) ---> genera valores 1, 2, 3 el bucle recorre los 3 valores
print(i, end="")---> imprime cada numero sin salto de linea, por eso se ve 012 seguido
else: --> se ejecuta cuando termina el bucle, sin brake, cuando finaliza se ejecuta ("x") por eso es:
012x
Español












