+ 5
Latest IDLE for Python vs. SoloLearn's Code Playground
I have this code called Crafting Survival: Refer to the code playground if you didn't see it before. The code doesn't work but I have downloaded the latest version of Python and the program runs perfect... Does anyone know which version SoloLearn is using?
2 Réponses
+ 5
I think its 3.5...
It may be that your code isn't working due to other reasons...
They can be:
0) Heavy Input Requirement - If your game requires lot of inputs, it may be that during running you forgot some input and so the program crashed...
1) Large Intepretation/ Compilation - It may be that your code is large enough that SoloLearn's Code Playground is not able to handle it. Then it may show you time limit error, or no output...
2) Slow Network - It may be that sometimes your net connection is slow and this may provide a hindrance to interpretation/ compilation... Thus, try running your program multilple times or use a faster network...
+ 4
You have 3 different kind of problem with the code actually published on your profile:
> some spaces are non-break spaces (decimal 160) rather than 'normal" space (decimal 32), and Sololearn code playground stucks to deal with ^^ You just have to replace them by correct 'real' spaces (open your code playground in web browsers, the non-break spaces are highlighted -- at least on my chrome/android tablet)
> your first 'commands' dict definition is not correct, as you have separated items by semi-colon (;) instead of coma (,) :P
> your code require interractive inputs, but code Playground Python distant interpreter cannot deal with that, just simulating a bunch of inputs by sending all at once at start, separated by new lines :(