I downloaded python 3.0.1 today and started experimenting with the new
print statement.

>>>import time
>>>for l in 'the answer':
...    print(l,end='')
...    time.sleep(0.1)

the code is supposed to print "the answer" with a 0.1 second long
pause between the letters. instead, it waits for 1 second (
0.1*len("the answer") seconds ) and then prints "the answer". what am
I doing wrong ?
both replacing print(l,end='') with print(l) or using the msvcrt
module instead of the print function work fine.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to