I am a beginner currently learning Python through "Python Crash Course: Third Edition" and I just started chapter 7, which involves inputs. Whenever I try to use an input, I will receive the EOF Error. For context, I am using Visual Studio Code.
This is what I enter into Visual Studio Code:
message = input("Tell me something, and I will repeat it back to you: ")
print(message)
This is what happens:
Tell me something and i will repeat it back to you:
Traceback (most recent call last):
File "C:\Users\Andrew\Desktop\python_work\Chapter 7 python\parrot.py", line 1, in <module>
message = input("Tell me something and i will repeat it back to you: ")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
I FIGURED IT OUT. It was because a long time ago I simplified the output in a launch.json file bye changing the console from "integratedTerminal" to "internalConsole", which doesnt allow user input.