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?


It is ...

import time
# some of your code here ...
# ... more code

... or you can use ...

from time import sleep

commented: Quick and helpfull +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.