Skip to content
Sign upLog in
← Back to Community

How do you make the program wait?

Profile icon
ArmedWithStew

time.sleep(x) doesn't work so how else, in python, are you supposed to wait?

Answered by ash15khng [earned 5 cycles]
View Answer
Voters
Profile icon
EwanMiller
Profile icon
TedZhang4
Profile icon
NathanBeka
Profile icon
LowieJoosten
Profile icon
MackenzieBryan1
Profile icon
sricharan1234
Profile icon
ArmedWithStew
Comments
hotnewtop
Profile icon
ash15khng

You need to import time before you can use it by doing import time at the top of your code.

Profile icon
[deleted]

time.sleep works for me. E.g.

import time delay = int(input("Enter the delay that you want: ")) print("Delay starting") time.sleep(delay) print("Delay over")