Every 10 seconds?

grayrest grayrest at grayrest.com
Wed Feb 12 14:10:07 EST 2003


Hutchins, Mike wrote:
> Ok, if I wanted to write a script that just sat there and every 10
> seconds did 
> 
> print "Hello World"
> 
> how would I do that???
> 

import time
while 1:
	print "Hello, World!"
	time.sleep(10)


-- 
grayrest
http://grayrest.com/moz





More information about the Python-list mailing list