+ 12

Did Sololearn Support This.....?

i copy a snake game and menu bar code from my book and run the snake game and menu bar, but it said "time limit exceed" so i delete the code and try the code to my pc and it work! why?

22nd Jun 2018, 11:54 PM
Jingga Sona
Jingga Sona - avatar
11 ответов
+ 29
In the Code Playground, when you execute a code, unless it's a web code, it will be processed by a Sololearn server. To make it possible, they had to set up two limitations for those executions: There's a Time limit, something around 4 seconds (I don't really know) and a Memory use limit. Also, anything like a snake game won't run with python, because it needs a visualisation window to open, and that's not possible in Code Playground. For questions like this you can also post your code so we can answer more precisely ...
23rd Jun 2018, 7:32 AM
Cépagrave
Cépagrave - avatar
+ 9
23rd Jun 2018, 12:00 AM
Jingga Sona
Jingga Sona - avatar
+ 8
i copyed the right code.. so... maybe its sololearn
22nd Jun 2018, 11:59 PM
Jingga Sona
Jingga Sona - avatar
+ 6
Code playground ide is very limited for non web codes. Try running your code in a true ide. ☺
23rd Jun 2018, 8:04 PM
Haris
Haris - avatar
+ 5
Chaim Goldblatt Thats true! But i alredy give space and a right Tab
23rd Jun 2018, 2:17 AM
Jingga Sona
Jingga Sona - avatar
+ 5
coolboy7 Maybe... SoloLearn only support "word" with python? Man,... i love python i have 2 book about it 😉😉😉
23rd Jun 2018, 2:18 AM
Jingga Sona
Jingga Sona - avatar
+ 5
Cépagrave thanks!
23rd Jun 2018, 10:16 AM
Jingga Sona
Jingga Sona - avatar
+ 3
maybe the indentation was copied incurrectly, or solo learn shell does not have the memery for heave codes
22nd Jun 2018, 11:59 PM
Chaim Goldblatt
Chaim Goldblatt - avatar
+ 3
there is a thing with indentation though, even if you have copied the right code and it appers to be identical, sometimes it is not copied exactly the same where there is a couple of spaces (in the case if indentation it is necessary). sure! :)
23rd Jun 2018, 12:21 AM
Chaim Goldblatt
Chaim Goldblatt - avatar
+ 2
Maybe the memory couldn't hold it well on SL? I don't know, but that is my guess.
23rd Jun 2018, 2:15 AM
coolboy7
coolboy7 - avatar
+ 2
Cépagrave Pydroid works good for running Python codes using Android It is a lot better than SoloLearn's compiler, SoloLearns Python compiler allows only input once and takes time to run even the simpliest codes. With Pydroid you can make real programs using Android.
23rd Jun 2018, 11:29 AM
Seb TheS
Seb TheS - avatar