+ 1
Is there anyway to have a wait within sololearn for python?
Ive seen people say sleep with a note it doesnt work on sololearn in other questions. Is there another way?
4 ответов
+ 4
not in Sololearn.
Sololearn kicks out your code if it's executing over a few seconds.
+ 3
Lover Draw
The OP was asking sleep in Sololearn.
Your program will just print everything and not really wait in Sololearn.
Also, try it for
time.sleep(10)
so no, time.sleep() will not work as you expect in Sololearn.
0
Is that why i get an error at line 53 on an unrelated code XD
tbf it was a syntax error
0
do that:
import time #it imports time
print("Hello, ")
time.sleep(1) # wait 1 second
print("world")