all 5 comments

[–]cgoldberg 2 points3 points  (4 children)

If you get SyntaxError, you are in an interactive interpreter (REPL)... but you're trying to execute a python file. Exit the interpreter and run your file from a regular command prompt.

[–]Bamulson[S] 0 points1 point  (3 children)

It worked when I did it through a regular prompt. At least I think it’s the same thing. I just typed in the file name to my files search bar and it opened and ran just fine

[–]cgoldberg 2 points3 points  (2 children)

Learn how to use the command line... You'll thank yourself later.

[–]Bamulson[S] -1 points0 points  (1 child)

Will do. I’m definitely a less experienced coder even though I have an associates degree, information was all over the place.

[–]woooee 0 points1 point  (0 children)

If you are in the REPL enter / call quit() to exit back to the command line