problem with exec
Steven D'Aprano
steve at REMOVE.THIS.cybersource.com.au
Sun Jul 22 06:43:11 EDT 2007
On Sun, 22 Jul 2007 03:23:30 -0700, vedrandekovic wrote:
> Thanks for everything previously, but just to I ask about code
> indentation,this with { and } doesn't
> employed, here is my example how can I solve this about code
> indentation:
>
>>>> n=90
>>>> if n==90:
> {print "bok kjai ma'}
> File "<input>", line 2
> {print "bok kjai ma'}
> ^
> SyntaxError: invalid syntax
Steve Holden was playing silly games. You can't use { } for indentation.
You have to use indentation.
--
Steven.
More information about the Python-list
mailing list