I'm trying to run python code with the atom-runner for atom, but it returns an EOF error. I did what other answers to similar questions said to do, and put raw_input() instead of input(), but it still returns and EOF error.
Here is my code:
tempf = int(raw_input("What is the temperature in fahrenheit? "))
tempc = (tempf - 32) * 5 / 9
print("The temperature in celsius is", tempc, "degrees.")
Here is the error:
What is the temperature in fahrenheit?
Traceback (most recent call last):
File "C:\Documents\Programming\Python\f2c.py", line 1, in <module>
tempf = int(raw_input("What is the temperature in fahrenheit? "))
EOFError: EOF when reading a line
atom-runner, you can use some terminal packages orscript.raw_inputfor input, for Python 3.X useinput.