[Tutor] help with homework

Matthew Ngaha chigga101 at gmail.com
Mon Oct 29 02:40:09 CET 2012

> In your original getNames do something like this.
>> Initialise a counter to zero.
>> Every time you get a valid name increment the count.
>> If the count is three you're finished.
> hey i was looking at the question as im learning also. With the counter,
would you use a while loop instead of a for loop, with the condition being
something like, while count < 3:  ? without len() the for loop option seems
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121029/74a952e5/attachment-0001.html>

More information about the Tutor mailing list