wierd error after if or while

gregholmes at my-deja.com gregholmes at my-deja.com
Tue May 9 09:04:16 EDT 2000


> 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.



More information about the Python-list mailing list