Nested if and expected an indent block

kagard@gmail.com RentInGhent at gmail.com
Sun Aug 13 20:13:27 EDT 2006


alisonken1 wrote:
> kagard at gmail.com wrote:
> > Greetings:
>
> <snip>
> >     elif q.lower() == "some"    # s in some is highlighted
> <snip>
> > Any ideas? Thanks in advance.
> >
> > Keith
>
> Would the missing colon have something to do with it?
>
> > elif q.lower() == "some":

Thanks for the replies:

I'm sorry, the colon is there in the original, I accidentally blew it
off when I added the comment. The only information I get from IDLE is a
dialog box that says:

Syntax Error
There's an error in your program:
expected an indented block

Keith




More information about the Python-list mailing list