python repeat function x time every second code example
Example: python repeat every n seconds
#executes printit() every 5s
import threading
def printit():
threading.Timer(5.0, printit).start()
print "Hello, World!"
printit()
#executes printit() every 5s
import threading
def printit():
threading.Timer(5.0, printit).start()
print "Hello, World!"
printit()