Printing dots in sequence ('...')
Larry Bates
larry.bates at websafe.com
Tue May 22 10:10:18 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
>
I wrote this a donated to Python Cookbook some time ago, enjoy.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299207
-Larry
More information about the Python-list
mailing list