[Solved] How to make Python do something every half an hour?

[ad_1]

This should call the function once, then wait 1800 second(half an hour), call function, wait, ect.

from time import sleep
from threading import Thread


def func():
    your actual code code here


if __name__ == '__main__':

    Thread(target = func).start()
    while True:
        sleep(1800)
        Thread(target = func).start()

0

[ad_2]

solved How to make Python do something every half an hour?