Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Line 6, 13, 27 take out the sleep times and it's running. I think we do not get enough CPU time from SL for all this sleeps.
26th Nov 2021, 1:18 PM
Coding Cat
Coding Cat - avatar
+ 1
Yes, it's running line by line. But it cost time to run a program. And SL gives you only a small amount of time for each run. And sleep time is also processing time.
26th Nov 2021, 1:32 PM
Coding Cat
Coding Cat - avatar
+ 1
Ur programs has no problem... Sololearn emulator for somereason doesnt support this... Try using another emulator like Pydroid3
26th Nov 2021, 1:35 PM
Ramprasad
Ramprasad - avatar
0
I've tried it with 0.1 sleep time at each line. Therfore you will get results. But that's nearly the max value before you get a time out (No Output).
26th Nov 2021, 1:55 PM
Coding Cat
Coding Cat - avatar