Adam Hurwitz <adamhurw...@google.com> Wrote in message:
>

Many times when a function doesn't work, and you can't figure out
 why, it pays to factor the function,  at least temporarily,  and
 test the different parts.  This might be your best bet in this
 case,  especially when I tell you that you're very close.
 

I therefore suggest you separate the list part from the testing
 part.  Write a function that just takes a string, and returns
 True or False,  and have the current one call it
in the loop. 
 Don't worry yet about efficiency.  (get it correct,  get it
 readable,  and then only if it's too slow or too big, get it
 efficient)

Did you leave this message as html? You'll do better to use plain
 text here.
> 

iiiiiiiiiiiiiiii
mmmmm

-- 
DaveA

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to