How to delete a ast character from a string?

2008-08-29 Thread dudeja . rajat
Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character set at their end, I have written a small program, unfortunately this does not work: dirListFinal = [] for item in dirList: print item

Re: How to delete a ast character from a string?

2008-08-29 Thread Chris Rebert
On Fri, Aug 29, 2008 at 11:25 AM, [EMAIL PROTECTED] wrote: Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character set at their end, I have written a small program, unfortunately this does not work:

Re: How to delete a ast character from a string?

2008-08-29 Thread dudeja . rajat
On Fri, Aug 29, 2008 at 7:40 PM, Chris Rebert [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 11:25 AM, [EMAIL PROTECTED] wrote: Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character set at their end, I

Re: How to delete a ast character from a string?

2008-08-29 Thread Terry Reedy
[EMAIL PROTECTED] wrote: Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character set at their end, I don't understand this. Give an example of input and expected output. I have written a small program,

Re: How to delete a ast character from a string?

2008-08-29 Thread norseman
[EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 7:40 PM, Chris Rebert [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 11:25 AM, [EMAIL PROTECTED] wrote: Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character