Need help with a program

Mark Dickinson dickinsm at gmail.com
Thu Jan 28 10:22:00 EST 2010


On Jan 28, 3:07 pm, evilweasel <karthikramaswam... at gmail.com> wrote:
> Hi folks,
>
> I am a newbie to python, and I would be grateful if someone could
> point out the mistake in my program.

<snip>

> for j in range(0, b):
>     if lister[j] == 0:

At a guess, this line should be:

    if lister[j] == '0':
        ...

--
Mark



More information about the Python-list mailing list