[Tutor] lstrip() question

Alan Gauld alan.gauld at blueyonder.co.uk
Tue Feb 3 01:35:57 EST 2004


> Is there a builtin
> python method to strip leading substrings? Or do
> I have to do something using startswidth()?

Try the string.replace() function?
Just replace the substring with an empty string.

Alan G.



More information about the Tutor mailing list