[Solved] If I want something to consistently be happening while the rest of my program is still running in Python, what do I do? [closed]


Use threading:

import threading

def interest():
    while True:
        print('interest is running')

d = threading.Thread(target=interest)
d.setDaemon(True)
d.start()

print('Your main job is here')

1

solved If I want something to consistently be happening while the rest of my program is still running in Python, what do I do? [closed]