I'm having this exact beginner problem. syntax error when using command line in python
As suggested I try to quit the interpreter. But when I try to quit the interpreter/shell with exit() or ctrl d the whole Python2.7.6 Shell and c:/python27/python.exe gets closed unlike in the Pyquick video tutorial I'm watching.