Eoin O'kane
New Member
- Joined
- May 18, 2011
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Basically I have just started learning python and am following the guide and entered:
>>> #!/usr/bin/python
>>> #Filename: helloworld.py
>>>
>>> print("Hello World")
Then saved this in the main Python folder. Then I opened the DOS python thing and typed in
>>>python helloworld.py
and I get:
File "<stdin>", line 1
python helloworld.py
SyntaxError: invalid syntax
Followed the step...not sure what I am doing wrong?
>>> #!/usr/bin/python
>>> #Filename: helloworld.py
>>>
>>> print("Hello World")
Then saved this in the main Python folder. Then I opened the DOS python thing and typed in
>>>python helloworld.py
and I get:
File "<stdin>", line 1
python helloworld.py
SyntaxError: invalid syntax
Followed the step...not sure what I am doing wrong?