Python time module

I am a new Python user. I would like to delay execution for five seconds in a Python script. How do I add a time delay in Python on Unix/Linux? Is there a sleep command in python like the Unix/Linux sleep utility to suspend execution of a bash script?

{ 2 comments }

How do I find out the current date and time in Python? What is the module or function I need to use to get current time or date in Python programming language?

{ 6 comments }