How to repeat a function every N minutes? [duplicate] How to repeat a function every N minutes? [duplicate] python-3.x python-3.x

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()