[Tutor] str.split and quotes

Kristian Zoerhoff kristian.zoerhoff at gmail.com
Mon Apr 11 18:03:13 CEST 2005


On Apr 11, 2005 11:00 AM, Alberto Troiano <albertito_g at hotmail.com> wrote:
> 
> To give you a graphic example how can make this function to run every 5
> seconds 
> 
> def foo(): 
> 
>     print "Hello world!" 
> 

I'm not Kent, but I play him on TV ;-)

import time

def foo():
    print "Hello world!"

while true:
    foo()
    time.sleep(5)

-- 
Kristian

kristian.zoerhoff(AT)gmail.com
zoerhoff(AT)freeshell.org


More information about the Tutor mailing list