[Tutor] String-manipulation question

Alan Gauld alan.gauld at btinternet.com
Mon Mar 12 09:32:18 CET 2007


"John Fouhy" <john at fouhy.net> wrote in message 
news:5e58f2e40703111952j406f24d1n869c941d3b5cc8d2 at mail.gmail.com...
> On 12/03/07, Alan Gilfoy <agilfoy at frontiernet.net> wrote:
>
>> My question here boils down to, "Is there a way to remove certain
>> characters from a string?"

> In this case, it looks like you're after "string slicing".  The
> tutorial covers this; look about half-way down the page:
> http://docs.python.org/tut/node5.html

And that will also help you extract the first 3 characters too.

Alan G 




More information about the Tutor mailing list