Newbie question

Francesco Guerrieri f.guerrieri at gmail.com
Tue Sep 18 21:10:10 CEST 2007


On 9/18/07, koutoo at hotmail.com <koutoo at hotmail.com> wrote:
> If I have a file name: AVC1030708.14.  How do I strip out certain
> characters from the file name?  I am so used to using MID, LEFT, and
> RIGHT functions, that I have no idea how to do this in python?  I have
> had trouble as well with most newbies on finding the help.  But I have
> used the command line built in help, but with no luck.  Thanks.
>
> Kou

As a newbie, you would do well to read and study the tutorial which
you can find at http://docs.python.org/tut/tut.html

In particular there is an interesting section on Strings:
http://docs.python.org/tut/node5.html#SECTION005120000000000000000

and
http://docs.python.org/lib/string-methods.html

Francesco



More information about the Python-list mailing list