How to delete a ast character from a string?

Terry Reedy tjreedy at udel.edu
Fri Aug 29 14:58:28 EDT 2008



dudeja.rajat at gmail.com 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, unfortunately this does not work:

Define 'does not work' by pasting a copy of the unexpected output.




More information about the Python-list mailing list