- 1
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
2 Antworten
+ 1
# please post this on code playground, check
''' 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
'''
num1 = int(input("Please enter your first number : "))
+ 1
It appears that it may be having an issue with retrieving ( handler ) the raw_imput ( OR ) there may be an indention error in the code somewhere.