Skip to content
← Back to Community
How do you use a wait command in Python 2.7?
Profile icon
PythonCoder100

How do you use a wait command in Python 2.7? Please help.

Voters
Profile icon
NathanielDuaine
Profile icon
PythonCoder100
Comments
hotnewtop
Profile icon
GyorgyPosta

i copied hope its not a problem :)

Profile icon
AmaanWaseem

@GyorgyPosta
noice same here

Profile icon
L1LY57

Input time, time.sleep(X). x=secs

Profile icon
ColePayneSexton

Import the module time and use
time.sleep(number of seconds)

Or in turtle you can use the ontimer method (only works in turtle)

Profile icon
amasad

Do you mean to wait for a certain time period? You can use time.sleep

import time time.sleep(1)