Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def func(seconds):
- time.sleep(seconds)
- print(f'waited {seconds} seconds')
- start_time = time.time()
- while time.time() - start_time < 5:
- func(6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement