Imprima no una nueva línea Python
print('*', end='')
print('*', end='')
print('*', end='')
# output:
# ***
Panicky Parrot
print('*', end='')
print('*', end='')
print('*', end='')
# output:
# ***
# A small example using range function
for i in range(1, 11):
print(i, end="")
print('Foo', end='')
print( "a", "b", sep=",", end=",")
print( "c")
# prints
# a,b,c
print("geeks", end =" ")
## the command \r does this
print('hello', end='\r')
print('bye', end='\r') ## the end='\r' command is what does this.
output:
bye
## it is bye because it immediately rewrites the line with bye.