How to delay a Python loop - Purple Frog Systems
Jul 06, 2020 · To show the delay, we will print out the current datetime using the datetime module. 1 – Sleep The sleep function from Python’s time module pauses the Python execution by the number of seconds inputted. The example below pauses the script for 60 seconds. The above script has a 60 second delay between the end of a loop and the start of the next.
DA: 40 PA: 26 MOZ Rank: 38