Newbie getting desperate with for
nitinpawar432 at gmail.com
Thu Feb 17 09:37:58 CET 2011
can you share the first line of your shell (shabang) ?
I think you have forgotten to tell the shell which interpreter to use
if you have not put #!/usr/bin/python then its plain shell script which is
On Thu, Feb 17, 2011 at 1:57 PM, Werner <wdahn at netfront.net> wrote:
> I have a trivially simple piece of code called timewaster.py:
> while True:
> i = 0
> for i in range(10):
> It runs fine with Eric but when I try to run it from shell...
> > ./timewaster.py
> ./timewaster.py: line 4: syntax error near unexpected token `('
> ./timewaster.py: line 4: ` for i in range(10):'
> I've tried this on openSuse 11.3 and Kubuntu 10.04, both use Python
> version 2.6.5, both show the above.
> Before I tear out my hair any more (only 3 left) I thought I'd ask here
> what I am doing wrong.
> Best Regards
> Werner Dahn
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list