Newbie question

Laurent Pointal laurent.pointal at wanadoo.fr
Tue Sep 18 21:34:14 CEST 2007


 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 you seem to know about mid, left, right functions, you may have already
programmed with languages such as Basic.

Learning Python is usually easy, see Python tutorials in several places:
* http://docs.python.org/tut/tut.html
* http://www.awaretek.com/tutorials.html
* http://effbot.org/pytut/


Once you have the language basics, you can look after the standard library
documentation:
* http://docs.python.org/lib/lib.html

For a very quick overview of the language and the libraries, you may take a
look at R.Gruet Python Quick Reference or at my Python Quick Reference
Card - these are refs, not learning tools.
* http://rgruet.free.fr/
* http://www.limsi.fr/Individu/pointal/python/pqrc/ (still for Python 2.4 -
working on 2.5)





More information about the Python-list mailing list