Unable to run this python code on Sololearn | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Unable to run this python code on Sololearn

I have created a python code on rock paper scissors game. This game works fine on laptop and even on Python 3 IDE app (available on Play Store). However, I am not able to run the same code on Sololearn. I don't know why is this happening. Please help me. https://code.sololearn.com/cmjM2SVS7R8h/?ref=app

7th May 2020, 4:48 AM
Viren Varma
Viren Varma - avatar
4 Answers
+ 5
Viren Varma No you can't run code here for infinite time. SoloLearn playground has limitations. For any code that has infinite run time, it will run for 5 seconds max and then give timeout.
7th May 2020, 5:17 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 3
Code runs completely fine, you seem to be confused about input system. Here, you have to provide all inputs before running the code and if you have multiple inputs put them on separate lines. I just tried your code and it worked fine. sample inputs: rock paper exit
7th May 2020, 5:02 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 3
So does that mean I can't run a program infinite times using a flag in Sololearn?
7th May 2020, 5:14 AM
Viren Varma
Viren Varma - avatar
0
Ohh no! Any suggestions how can I make this code better so that I can post it on code playground?
7th May 2020, 5:20 AM
Viren Varma
Viren Varma - avatar