[Tutor] Stuck on Challenge in Google Python Class
Dave Angel
davea at davea.name
Wed Jan 22 11:10:55 CET 2014
Adam Hurwitz <adamhurwitz at 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
More information about the Tutor
mailing list