On Jan 28, 3:07 pm, evilweasel <karthikramaswam...@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 -- http://mail.python.org/mailman/listinfo/python-list