[Tutor] really really silly question

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Sat, 28 Oct 2000 12:21:50 -0700 (PDT)


On Sun, 29 Oct 2000, wheelege wrote:

>   I saw the sleep command in the python documentation and tried to use
> it - but no matter how hard I try I get an error saying the variable
> 'sleep' does not exist.  Help!

The sleep command's part of the time module, so you'll need to import time
first:

    import time
    time.sleep(10) # sleep for 10 seconds

or

    from time import sleep
    sleep(10)

Hope this helps!