I want to print such that the new print object replaces the old printed object in the same line. Here is what I do:
for i in range(0,10000):
print "\r", i,
However the result that this gives me is this:
9999 1415
I expect to only see 9999. I do not know why it prints out 1415.
There are people who have given answers on this topic before but they have been focused on python 3.x. I have python 2.7 with Canopy.