0

What is wrong with my coding lines

I wrote: x = input("Farrokh Mokri") print(x) y = input("fhghghghhf hhhghghg ghghhg") print(y) and got the result: Farrokh Mokri fhghghghhf hhhghghg ghghhg Traceback (most recent call last): File "./Playground/file0.py", line 3, in <module> y = input("fhghghghhf hhhghghg ghghhg") EOFError: EOF when reading a line Why, what is wrong?

31st Oct 2020, 12:09 AM
Farrokh Mokri
Farrokh Mokri - avatar
2 Respostas
+ 3
In sololearn code playground this is a normal error you will not get the error in IDE try entering values in a correct manner. In first line input for first statement In second line input for second statement
31st Oct 2020, 12:41 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
Hi Farrokh Mokri, Run this code to understand how input works in SoloLearn 👍 https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
31st Oct 2020, 3:13 AM
Ipang