-1
I want to know how to make prints to be shown in the same line using python 3. Example:
print('1')
print('2')
1
2
I wanted when python was going to print number 2, number one was erased and 2 appeared on the same line as 1 was before.
I tried to do with a code provided in another question here, but I did not get the expected result.
import sys
import time
for x in range(11):
print("{}%".format (x))
sys.stdout.write("\033[F")
time.sleep(0.1)
Please. Do not post your codes as an image. As you saw in the other questions and answers, the site has source code support. For more information, do the [tour], read the [Ask] guide and go to [help].
– Woss
And please check that your terminal has support for such characters. The same code you copied from the other question worked perfectly here: https://i.stack.Imgur.com/Ac7kw.gif
– Woss