On 9 ene, 17:48, John <[EMAIL PROTECTED]> wrote: > i want to print something like: > > (1sec) working... > (2sec) working.... > (3sec) working..... > > where the 'working' line isn't being printed each second, but the dots > are being added with time. > > something like: > > import time > s = '.' > print 'working' > while True: > print s > time.sleep(1) > > however, this doesn't work since it prints: > > working > . > .
Change > print s to > print s, (With the ending ",", which sends NO linefeed to stdout) Bye :) -- http://mail.python.org/mailman/listinfo/python-list