Last active
December 17, 2015 15:29
-
-
Save Nicksil/5632051 to your computer and use it in GitHub Desktop.
Repeat function using time.sleep()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
def execute_something(): | |
# code | |
time.sleep(60) | |
while True: | |
execute_something() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment