[Solved] Function doesn’t work in another function with sleep [closed]


Your code should work. To check what is wrong, you could use this:

def checksite():
   #blahblah
while True:
    print('starting')
    checksite()
    print('site checked')
    time.sleep(10)
    print('sleep function complete')

Then maybe you will get an idea of what is wrong.

3

solved Function doesn’t work in another function with sleep [closed]