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
11 Answers
+ 8
I think this can help you.
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 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.
+ 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
+ 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.
+ 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.
+ 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. :)
+ 1
Thanks Kirk Schafer đđđ
+ 1
Finally its work! I put number on this run box and its run.
Thank you very much Lambda_Driver Kirk Schafer
0
I dont understand. Its recomand for me to not put code with input??
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')
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