Re: [Tutor] removing padded numbers

2007-01-10 Thread Kent Johnson
Christopher Spears wrote: > Does anyone how to remove padded numbers with python? > I want to be able to take a file like > > afile.0001.cin > > and convert it to > > afile.1.cin The straightforward way is just to pick it apart and put it back together the way you want it: >>> a, b, c = 'af

[Tutor] removing padded numbers

2007-01-10 Thread Christopher Spears
Does anyone how to remove padded numbers with python? I want to be able to take a file like afile.0001.cin and convert it to afile.1.cin I've been checking the docs but nothing jumps out at me. Thanks! ___ Tutor maillist - Tutor@python.org http: