How to repeat a function every N minutes? [duplicate]
use a thread
import threadingdef hello_world(): threading.Timer(60.0, hello_world).start() # called every minute print("Hello, World!")hello_world()
use a thread
import threadingdef hello_world(): threading.Timer(60.0, hello_world).start() # called every minute print("Hello, World!")hello_world()