Feedback

Banibrata Dutta banibrata.dutta at gmail.com
Sun Nov 23 05:10:04 CET 2008


2008/11/21 Ali art <biltar at hotmail.com>

>  I am using Windows XP professional version 2002 Service pack 3. AMD
> Athlon(TM)XP 2400+ 2.00GHz 992MB RAM.
> I have download Windows x86 MSI Instaler (3.0rc2) Python 3.0rc2 Release:
> 06-Nov-2008.
>
> I want to use source code file from Python Command line but I could not.
>
> Firstly i opened IDLE and clicked on File → New Window and pasted
>  #!/usr/bin/python
> #Filename: helloworld.py
>
> print('Hello World')
> and saved  "helloworld.py" without quotes.Then i invoced pyton command
> line.
> Python 3.0rc2 (r30rc2:67141, Nov  7 2008, 11:43:46) [MSC v.1500 32 bit
> (Intel)]
> on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> python helloworld.py
> and pressed enter
> But it did not work gives the error
>  Python 3.0rc2 (r30rc2:67141, Nov  7 2008, 11:43:46) [MSC v.1500 32 bit
> (Intel)]
> on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> python helloworld.py
>   File "<stdin>", line 1
>     python helloworld.py
>                     ^
> SyntaxError: invalid syntax
> >>>
> Did i meke any misteke? I tried
> Control Panel -> System -> Advanced -> Environment Variables.
> System Variables -> C:\Python30
> but it still gives same error.
>

Since others have already pointed out what went wrong, here's a suggestion
from another newbie (self), to get you quickly up to speed with Python --

http://diveintopython.org/toc/index.html
and especially section 1.8. There are several great books out there, but I
found Dive-into-Python very easy to follow, allowing me to make very fast
progress, and getting me up to (a certain encouraging) speed, soon enough.
Happy hacking.

-- 
regards,
Banibrata
http://www.linkedin.com/in/bdutta
http://octapod.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081123/005c0201/attachment.html>


More information about the Python-list mailing list