Try running Python using its full path (C:\Python27\python.exe or wherever you installed it), and post the full error message.
Edit #1:
The prompt "C:\Users\Name>" belongs to the Windows command prompt. That's where you can type commands and run programs (like python.exe). The prompt ">>>" belongs to the Python interpreter. That's where you can type Python. To exit the Python interpreter and go back to the command prompt use Control-Z or type "quit()" followed by Enter.
The first command ("C:\Python27\python.exe") executed perfectly - the Python interpreter started, printed some information, and displayed its prompt (">>>"). This is a very good sign. The second command ("python ex1.py") was given to the Python interpreter, not the command prompt, which is why you got an error message.
Please try running "python ex1.py" again, this time at the command prompt (it should look like "C:\Users\Name>python ex1.py").
- If you get a message like "'python' is not recognized as an internal or external command, operable program or batch file" you need to add C:\Python27 to the path variable (see http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx ).
- If you get a message like "python: can't open file 'ex1.py': [Errno 2] No such file or directory", you are not in the same folder as ex1.py and need to navigate to that folder using the cd command.
- If you get a longish message with the filename, a line number, and a line of your code, there is a bug in 'ex1.py' but everything else is working.
- If it's not one of those, post the message.
Edit #2:
There is a problem with the code in ex1.py. Please post its contents.
Edit #3:
You are missing the word print at the start of each line in ex1.py.
The author's gedit / powershell comment doesn't make sense to me either (could be a broken telephone -- exact wording would help). Use PowerShell or the command prompt to start python ("python ex1.py") and use Gedit, Notepad or Notepad++ to type your Python code.