learn-python icon indicating copy to clipboard operation
learn-python copied to clipboard

Trying to use input()

Open cginnaty opened this issue 3 years ago • 5 comments

Is there a reason that it throws an EOF error whenever trying to use input to get the name and question, or was it mentioned previously that you can't use input() in the website code editor?

cginnaty avatar Jul 06 '22 07:07 cginnaty

I had the same issue and was wondering the same thing.

Luis-Rodriguez-02 avatar Jul 07 '22 23:07 Luis-Rodriguez-02

An EOFError is raised when a built-in function like input () or raw_input () do not read any data before encountering the end of their input stream. The file methods like read () return an empty string at the end of the file. Its happen because when the compiler compile the code it get EOF at end and nothing else to do.

monumanpreet avatar Sep 16 '22 05:09 monumanpreet

I got the same problem on Codecademy but when I use vscode it's fine.

sleepykanguru22 avatar Nov 16 '22 20:11 sleepykanguru22

This is a charming program! I got an EOF error too. If we just cut out the personalization it works nicely.

CPaxtonProgrammer avatar Nov 23 '22 20:11 CPaxtonProgrammer

I would like to be assigned to work on this issue

LizzyWizz avatar Mar 30 '23 08:03 LizzyWizz