0

Hello I'm very new to python and programming over all and I'm getting this error

>>> python C:\Users\Spravce\Desktop\hello1.py
  File "<stdin>", line 1
    python C:\Users\Spravce\Desktop\hello1.py
           ^
SyntaxError: invalid syntax
1

1 Answer 1

0

You are trying to run python inside the Python Interactive Shell

https://docs.python.org/3/tutorial/interpreter.html#interactive-mode

exit from it using command quit() and run your command in the system shell instead :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.