Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def function():
- return 'your once a day function just ran.'
- while True:
- do_something = function()
- print(do_something)
- user_input = input('Sleeping for 24 hours. Press \'q\' at anytime to quit.')
- if user_input == 'q':
- exit()
- else:
- time.sleep(86400)
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement