Python print sin nueva linea:
print(" hola ", end="")
But if we customize the value of end
and set it to " "
A space will be added to the end of the string instead of the new line character \n
, so the output of the two print statements will be displayed in the same line:
No hay comentarios:
Publicar un comentario