+ 1

Code Playground says no output even though there are several print statements.

I have this script that estimates pi, and it will take about 6 minutes to complete, due to it completing one million iterations. There is a print statement before the while loop, so it should still have an output. Did I do something wrong or is just how SoloLearns playground works? https://code.sololearn.com/cKJ42OJ7SGJi/?ref=app

13th Feb 2020, 2:58 AM
August Borne
August Borne - avatar
2 Answers
+ 4
I believe SL uses a time out after which "No output" is displayed, so this is not the best place for time consuming programs.
13th Feb 2020, 4:24 AM
Sonic
Sonic - avatar
+ 1
Alexandr no it took 6 minutes to complete a million checks with random numbers between 1 and 100,000. 1,000,000 on both takes about 11.
13th Feb 2020, 4:28 AM
August Borne
August Borne - avatar