0

why is it showing an EOF error while running a python code?

Please enter your first number : Please enter your operation (+ , - , *, /) : Please enter your second number : Your total = 6 --------------- Please enter your first number : Traceback (most recent call last): File "..\Playground\", line 3, in <module> num1 = int(input("Please enter your first number : ")) EOFError: EOF when reading a line

24th Mar 2018, 1:01 PM
AjiNkya
AjiNkya - avatar
3 Answers
+ 4
Looks like your program loops asking for 3 inputs each loop and didn't find the fourth input.
24th Mar 2018, 1:41 PM
John Wells
John Wells - avatar
+ 3
It will be helpful if you posted the code but are you entering your inputs on different lines? If you are getting several inputs from the user, here, you have to enter them on different lines
24th Mar 2018, 1:18 PM
cyk
cyk - avatar
0
thanks a lot
26th Mar 2018, 6:50 AM
AjiNkya
AjiNkya - avatar