# On the spot counter

**URL:** <https://forums.digi.com/t/on-the-spot-counter/20942>\
**Category:** Python\
**Tags:** python\
**Created:** [November 28, 2019, 4:13am UTC](https://forums.digi.com/t/on-the-spot-counter/20942 "2019-11-28T04:13:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![damnnv](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@damnnv](https://forums.digi.com/u/damnnv)\
**Post date:** [November 28, 2019, 4:13am UTC](https://forums.digi.com/t/on-the-spot-counter/20942/1 "2019-11-28T04:13:18Z")

</div>

I would like to display a count in the Console such that each increment is replaced in the same place (at start of line) by the next.  
Having looked at posts on overwriting the last line, I thought this should work ok, but it adds each increment to the last line instead of replacing it

Python Code:  
import time  
for i in range (15):  
time.sleep(1)  
print(i, end=“\r”)

result is:  
1234567891011121314  
note also that when it gets to 6 there is a long gap to 7:  
123456 7

What am I doing wrong?

Many thanks  
Astrikor
