On Sun, Jan 12, 2014 at 2:38 PM, Keith Winston <keithw...@gmail.com> wrote:
> On Sun, Jan 12, 2014 at 2:22 PM, Keith Winston <keithw...@gmail.com> wrote:
>>         if test:
>
> Sigh.... and this line needs to read (if it's going to do what I said):
>
>         if test != -1:

Consider the case of `product == "letter"`. Do you want to double
match on the 't' found in `debris`? I'm "+1" for finding a solution...
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to