Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import time
  2.  
  3. def function():
  4. return 'your once a day function just ran.'
  5.  
  6. while True:
  7. do_something = function()
  8. print(do_something)
  9. user_input = input('Sleeping for 24 hours. Press \'q\' at anytime to quit.')
  10. if user_input == 'q':
  11. exit()
  12. else:
  13. time.sleep(86400)
  14. continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement