<div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="HOEnZb"><div class="h5">
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
In your original getNames do something like this.<br>
Initialise a counter to zero.<br>
Every time you get a valid name increment the count.<br>
If the count is three you're finished.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div></div></blockquote><div>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 difficult</div>
</div>