[Tutor] creating the equivalent of string.strip()

Alan Gauld alan.gauld at btinternet.com
Tue Oct 2 10:19:56 CEST 2007


"Andrew James" <aijames at exemail.com.au> wrote

> *headbang*
>
> I'm an idiot. s=s[:-2] should be s=s[:-1].
>
> Andrew James wrote:
>> And as soon as I send it again I realise a pretty stupid error. The
>> two loops shouldn't be nested.
>>
>> Andrew James wrote:
>>> Helps if I send it to the group...

See the benefits of posting the code? Nobody said a world
and already you fixed it! :-)

Alan G.





More information about the Tutor mailing list