To clarify, do you mean the "Hello" in the command "python Hello.py" becomes red? It sounds like you're typing python Hello.py into a REPL and not a command prompt. What does the start of the line look like? "H:\py>"? ">>>"? Something else? Can you provide a screenshot?
Yes, I mean the "Hello" in the command "python Hello.py" becomes red...and the start of the line look like >>......my reputation is not enough to have a screenshot .and what does REPL mean? thanks
IDLE's Read-eval-print-loop (REPL) window can't execute programs that way. You need a command prompt.
If you are in Windows, hold shift and right click on the folder that contains your project. Select "Open command window here". Enter python Hello.py into that window.
Hello.pythen which causes a SyntaxError?python Hello.pyinto a REPL and not a command prompt. What does the start of the line look like? "H:\py>"? ">>>"? Something else? Can you provide a screenshot?Hello.py. You don't need any reputation to do that!!