Ask coding questions

← Back to all posts
How do you use a wait command in Python 2.7?
PythonCoder100 (7)

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

Comments
hotnewtop
amasad (3351)

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

import time
time.sleep(1)
L1LY57 (0)

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

plant3jyyehejy (14)

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

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