I'm not new to programming and understand basic structures but I'm only just now learning Python and have never really used the command line for any coding purposes except for a college class I took on C++ (Got a C I think)...*rimshot*
I downloaded "A Byte of Python" by Swaroop C H, as another forum topic suggested for starting Python, so that I'd have a reference into the language and it's syntax but I've been having some trouble during setup. I set the PATH variable correctly with ;C:\Python33 but when I go to the command line and and try to run a "hello.py" fill that I've saved I get this:
C:\Python33>python hello.py
File "hello.py", line 1
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit
(AMD64)] on win32
^
SyntaxError: invalid syntax
Now obviously the error is invalid syntax so I went through the code but all it consists of is a simple Hello World line.
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> print('Hello World')
Hello World
>>>
Now I know the book says to put python3 where I put python in the command line but whenever I put python3 I get this:
C:\Python33>python3 hello.py
'python3' is not recognized as an internal or external command,
operable program or batch file.
Anyone had the same sort of trouble when they were starting, and could maybe help me out? Thanks in advanced.