[Tutor] Displaying Status on the Command Line

Zachary Ware zachary.ware+pytut at gmail.com
Wed Nov 7 14:23:15 EST 2018


On Wed, Nov 7, 2018 at 1:17 PM Alan Gauld via Tutor <tutor at python.org> wrote:
> In Python 3 there are parameters to print()
>
> while someProcess():
>    time.sleep(1)
>    print('.', end='', sep='')   # no newline and no spaces

You'll also want `flush=True` here to avoid having your dots buffered
until end-of-line.

-- 
Zach


More information about the Tutor mailing list