max . wrote:
> hello i am writing a population script and was wondering  if i can 
> just keep writing to the same line instead of printing a new line 
> every second
 import time
 for i in range(5):
     print chr(13), i,
     time.sleep(1)

# chr(13) = carriage return, and the trailing , suppresses the newline.

-- 
Bob Gailer
510-978-4454 Oakland, CA
919-636-4239 Chapel Hill, NC


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to