[Tutor] String-manipulation question

John Fouhy john at fouhy.net
Mon Mar 12 03:52:29 CET 2007


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?"

There are several ways, depending on what exactly you want to achieve.

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

HTH!

-- 
John.


More information about the Tutor mailing list