Printing dots in sequence ('...')

Larry Bates larry.bates at websafe.com
Tue May 22 10:19:13 EDT 2007


beertje wrote:
> This is a very newbie question for my first post, perhaps
> appropriately.
> 
> I want to print '....' gradually, as a progress indicator. I have a
> for-loop that every 10 steps executes:
> print '.',
> 
> This results in something like 'Loading. . . .', whereas I want
> 'Loading....'
> 
> A pet peeve, I can't for the life of me figure out how to get this
> desired output. How do I print dots - or anything for that matter - in
> sequence without a space being inserted in between?
> 
> Thanks.
> Björn
> 

See example here:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299207

-Larry



More information about the Python-list mailing list