How to run a function after an x amount of time

PHOTO EMBED

Sun Jun 16 2024 19:07:29 GMT+0000 (Coordinated Universal Time)

Saved by @freepythoncode ##python #coding #python #programming #time

import pause

def test():
    print('done')

def run_after(func, amount_of_time):
    pause.milliseconds(amount_of_time)
    func()

run_after(test, 10000)
content_copyCOPY