+ 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?

21st Jan 2025, 2:40 AM
GachaWolf810
GachaWolf810 - avatar
4 Answers
+ 4
not in Sololearn. Sololearn kicks out your code if it's executing over a few seconds.
21st Jan 2025, 4:03 AM
Bob_Li
Bob_Li - avatar
+ 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.
21st Jan 2025, 7:48 AM
Bob_Li
Bob_Li - avatar
0
Is that why i get an error at line 53 on an unrelated code XD tbf it was a syntax error
21st Jan 2025, 4:36 AM
GachaWolf810
GachaWolf810 - avatar
0
do that: import time #it imports time print("Hello, ") time.sleep(1) # wait 1 second print("world")
21st Jan 2025, 7:44 AM
Lover Draw
Lover Draw - avatar