Is there a wait command in Python?
Python is mostly a sequential programming language, meaning that there are no built-in commands for creating a pause in the middle of a script. However, there are ways to make the script wait using external resources. The two most common ways to do this are to use the time.sleep function or to run the script on a different thread. These options may not be ideal for everyone, but they are straightforward and effective ways to add pauses into your script.
Read more: https://www.udacity.com/blog/2014/04/how-to-make-python-program-wait.html