How can I add a time delay in Python code?

I’m trying to create a program in Python that requires a time delay between two actions. How can I make a time delay in Python?

Here’s the code I have so far:

import time


I’m stuck on how to create a time delay of 5 seconds between the two actions. Can anyone provide an example of how to make a time delay in Python, or suggest any other ways to accomplish this?