Typing letters slowly using sys

Grant Edwards invalid at invalid.invalid
Fri Apr 5 10:50:01 EDT 2013


On 2013-04-05, mattgraves7 at gmail.com <mattgraves7 at gmail.com> wrote:

> dots = ('............')
> for x in dots:
>      sys.stdout.write(x)
>      sys.stdout.flush()
>      time.sleep(0.2)

That works just fine for me using Python 2.4, 2.6, 2.7 and 3.2.

-- 
Grant Edwards               grant.b.edwards        Yow! Is it 1974?  What's
                                  at               for SUPPER?  Can I spend
                              gmail.com            my COLLEGE FUND in one
                                                   wild afternoon??



More information about the Python-list mailing list