wierd error after if or while

nick_knight at my-deja.com nick_knight at my-deja.com
Tue May 9 10:50:44 EDT 2000


Thanks

In article <8f92c4$13$1 at nnrp1.deja.com>,
  gregholmes at my-deja.com wrote:
>
> > x = 4
> >
> > if x==4:
> > print "hello"
> >
> > I get the following error message
> >
> >   File "<stdin>", line 2
> >     print "hello",
> >         ^
> You need to indent the "print" line. Pyhton controls things with
> indents rather than braces.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list