Wait Between Commands with Python in Terminal on Mac - DevPops-Inc/python GitHub Wiki

• Press the “command” key and spacebar to launch Spotlight Search, type “terminal” and select the “Terminal” application.
image

• Type python3 and press the “return” key to enter the Python interactive shell.
image

• Type import time and press the “return” key to import the time module.
image

• Type time.sleep(< seconds >) and press the “return” key to wait for desired amount of second(s) before the next command.
image

⚠️ **GitHub.com Fallback** ⚠️