+ 1
pls sololearn fix this
sololearn can you please fix the input system in the code bits. And when I tried to do a countdown in python but, sleep() system is not working. So can you pls fix it
8 ответов
+ 10
Yes, Ausgrindtube you're right 👍.
LuckiGuy
Actually the sleep() work in python, but the problem is that it execute all the print statements at once.
For example:-
import time
for i in range(5):
time.sleep(1)
print(i)
In the above code,
time.sleep(1) will be execute 5 times.
So, it will output all the numbers after 5 seconds.
Also when you try to use bigger value in sleep() i.e more than 5, it will say 'no output' because there is a time limit or timeout for a code execution .
And use web playground using skulpt as BroFar Sir mentioned for better output.
+ 9
You have to give all your input at once in a pop up box, and yes sleep() doesn't work on Sololearn compiler.
Give a suggestion feedback to Sololearn via info@sololea