This is ofcourse a duplicate question but I still did not get any answer...
Here the duplicate question click here
import time
print("The progress is going on as below...")
for i in range(1,6):
print("\r" + "Done - " + str(i))
print("\r" + "Left - " + str(5 - i))
time.sleep(2)
I want to get the output as :
Done - 1
Left - 4
and again overwriting the 1 and 4 I want...
Done - 2
Left - 3
and again by over writing...
Done - 3
Left - 2
and so on.... I want all this to be overwritten.. in the 2 lines everytime while loops executes...
I want partial screen cleaning only those 2 lines... Not complete screen cleaning nor running multiple blank lines... Hope I am clear. Anyway possible ?
Kindly someone help...
This question is duplicate I accept but I could not find the solution for it... Please don't mark it down I just need help...
Please.