I want to know how to make prints appear on the same line using python 3. Example:
print('1')
print('2')
1
2
I wanted when python was to start number 2, number one was deleted and number 2 was on the same line as 1 was before.
I tried to do with a code made available in another question right here, but I did not get the expected result.
import sys
import time
for x in range(11):
print("{}%".format (x))
sys.stdout.write("3[F")
time.sleep(0.1)