[Tutor] Stuck on Challenge in Google Python Class
Keith Winston
keithwins at gmail.com
Wed Jan 22 19:11:30 CET 2014
On Wed, Jan 22, 2014 at 6:40 AM, Alan Gauld <alan.gauld at btinternet.com> wrote:
>> else:
>> return ' '
>
>
> Notice that this return will throw you out of the function so
> you don't process any more strings. You might like to look
> at 'continue' as an alternative.
You actually don't need to do anything with this "else", and it's at
the end of the loop. You can just fall through to the next iteration.
Of course, others have already addressed the real problems (which were
few: you're close)
--
Keith
More information about the Tutor
mailing list