On Wed, Jan 22, 2014 at 6:40 AM, Alan Gauld <alan.ga...@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
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to