import datetime
a = 100
b = 0
while a > b:
print(str(datetime.datetime.now()), end="\r")
b += 1
print(b)
I don't know why this doesn't work, i've searched a lot and everyone does this like this but it doesn't work for me, im confused!
What i want to achieve is to overwrite the print and print in the same line without making a ton of lines.
instead of this:
1
2
3
i wanted this:
1 and on the next print it would only appear 2 and next only 3 and etc..