How to trim n characters from right end of a string?
Paul McGuire
ptmcg at austin.rr._bogus_.com
Sat Jun 26 20:07:58 EDT 2004
More information about the Python-list mailing list
Sat Jun 26 20:07:58 EDT 2004
- Previous message (by thread): How to trim n characters from right end of a string?
- Next message (by thread): How to trim n characters from right end of a string?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Robert" <nospam at nospam.net> wrote in message news:GUnDc.13670$OX2.9785 at fe2.texas.rr.com... > Please tell this newbie how to remove n characters from the right end of a > string. > > Thanks, Robert > > At the Python '>>>' prompt: >>> a = "This is a string." >>> print a[:-5] This is a st
- Previous message (by thread): How to trim n characters from right end of a string?
- Next message (by thread): How to trim n characters from right end of a string?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list