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
3 Answers
+ 4
Looks like your program loops asking for 3 inputs each loop and didn't find the fourth input.
+ 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
0
thanks a lot