0

Hi
When i place this in my script

import time.sleep (2)

i would like my script to wait for 2 seconds then continue.

But when i run it the left bracket is highlighted in red then when iremove the left bracket as i assume that is not supposed to be there an EOF warning appears. Can somebody help me please?

Thanks
HLA91

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by vegaseat
1

It is ...

import time
# some of your code here ...
time.sleep(2)
# ... more code

... or you can use ...

from time import sleep

sleep(2)
Votes + Comments
Quick and helpfull
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.