i dont understand why my python codes runs on my computer but dont runs here | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i dont understand why my python codes runs on my computer but dont runs here

whats this error means? Traceback (most recent call last): File "..\Playground\", line 10, in <module> guessed = int(input()) EOFError: EOF when reading a line

4th Dec 2018, 12:55 PM
avi salman
avi salman - avatar
11 Answers
4th Dec 2018, 1:05 PM
Anya
Anya - avatar
+ 4
SoloLearn has limitations compared to your IDE or terminal/command line. If your code requires multiple inputs, you have to enter them all at once. Requiring input from the user via a loop won't work in SL. If you are still getting errors, post your code here so we can check it out.
4th Dec 2018, 1:54 PM
Lambda_Driver
Lambda_Driver - avatar
+ 4
There is no error in your code. Only possible issue is the indentation of both print statements. Can you post your code? Check this out: https://code.sololearn.com/cJo2v1U21GaQ/?ref=app
4th Dec 2018, 3:50 PM
Lambda_Driver
Lambda_Driver - avatar
+ 4
Have you tried putting any input in the run box and pushing submit? Since your code only requires a single input, try typing 42 then push submit. It should output the word "right". If it doesn't try to do what Kirk Schafer said.
4th Dec 2018, 6:15 PM
Lambda_Driver
Lambda_Driver - avatar
+ 4
If it still doesn't work, try to install SoloLearn on another device or use the web interface by going to www.sololearn.com. Log-in, type the code and then try to run it again.
4th Dec 2018, 6:17 PM
Lambda_Driver
Lambda_Driver - avatar
+ 2
avi salman On [RUN], are you seeing the popup that asks you for input? If no...that's odd (you may need to clear app cache, reinstall or upgrade the app) Otherwise...you have to type something into that box. :)
4th Dec 2018, 5:03 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Thanks Kirk Schafer ๐Ÿ‘๐Ÿ‘๐Ÿ‘
4th Dec 2018, 5:39 PM
avi salman
avi salman - avatar
+ 1
Finally its work! I put number on this run box and its run. Thank you very much Lambda_Driver Kirk Schafer
4th Dec 2018, 7:06 PM
avi salman
avi salman - avatar
0
I dont understand. Its recomand for me to not put code with input??
4th Dec 2018, 1:17 PM
avi salman
avi salman - avatar
0
I am not sure about your explanation. I will be greatful if you can tell me what the problem with my code that it not run in sololesrn: number = 42 print('please guess a number 1-100') guessed = int(input()) if number == guessed: print('right!') else: print('wrong')
4th Dec 2018, 2:35 PM
avi salman
avi salman - avatar
0
Lambda_Driver i try to run it with your link and its give the same massege: "Looks like your program needs input. Split multiple inputs into separate lines _________________________ 0/100 Submit
4th Dec 2018, 5:45 PM
avi salman
avi salman - avatar