I have been trying for the past two hours to understand what I'm doing wrong. I am just starting off in Python and I can't wrap my head around a few basic things.
I am using:
* Python 2.7.8
* Windows Powershell
This is my error:
>>> python ex1
File "<stdin>", line 1
python ex1
^
SyntaxError: invalid syntax
One thing to note, I've noticed if I force Python to start through a file, it unexpectedly closes. Could this be an administration issue?
I do not know how to do a traceback, or when I try it in Powershell, it gives me an error.
I fixed my silly error: I was using using Python in Powershell, instead of just using the command line. I also made an error in notepad++ - I accidentally had 2 spaces in Line 1 and 2 that I didn't catch.
Thank you for the help!
python ex1from Powershell directly. Don't open up a Python session and then try to runpython ex1from there.