Error solution

Michael Peuser mpeuser at web.de
Thu Aug 14 07:14:41 EDT 2003


"Sanjeev Trehan" <strehan at asahiindia.com> schrieb im Newsbeitrag
news:mailman.1060852019.2478.python-list at python.org...
> Dear All,
> I am a new to Python,just started few days back.I have installed
> Python23.exe.Also downloaded the totorial of Guido van Rossum
> Fred L. Drake, Jr., editor Release 2.3
> July 29, 2003
>
> When I write in command line the following eoors come:
> >>> print a
> File"<stdin>" Indentation error:Expected an indented block.
> >>>lambda x:x+n
> File"<stdin>" return^ lambda x:x+n
> Indentation error:Expected an indented block.

This is definitely confusing, because Python Shell (at least version 2.2.2)
will indent automatically if required. Thus there will normally not be a >>>
prompt but a number of spaces....

What have you typed before?

Kindly
Michael P

>
> Please solve my problem and explain from where should I start learning
Python.
> Waiting for reply.
>
> Regards
> Sanjeev
>
>
>
>






More information about the Python-list mailing list