r/PythonLearning • • Aug 09 '25

Syntax Error Help?

Post image

Followed along on the first video on YouTube with Corey Schafer. I don’t know what I’m doing wrong. I added the code in Idle and I keep getting this. Sorry for ignorance, I have no scripting background at all

0 Upvotes

5 comments sorted by

View all comments

3

u/cgoldberg Aug 10 '25

You are at a Python interpreter prompt typing arbitrary shell commands. Either type some Python, or exit the prompt (ctrl-d) and run shell commands from a shell.

Also note, some of the commands (--version) are just wrong and won't work anywhere.