I have a very basic program that takes user input and reads it back to the user. the code is:
x = input("hello what is your name: ") print("hello " + x) This works perfectly when run in idle however when run I run it by clicking on the file to get the command line type interface when I enter input i get the following error message:
File "C:\Users\ROB\Desktop\test.py", line 1, in (module) x = input("hello what is your name: ") File "(string)", line 0 ^ SyntaxError: unexpected EOF while parsing can someone pleese explain why this happens and suggest a solution to enable me to take user input in the command line.