quick question

Simon Brunning simon.brunning at gmail.com
Tue Mar 8 09:57:58 EST 2005


On Mon, 7 Mar 2005 18:58:20 -0500, Leeds, Mark <mleeds at mlp.com> wrote:
> 
> I have a string variable say "8023     " and 
> 
> I want to get rid of the beginning 
> 
> And ending quotes. 

Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> my_string = '"8023     "'
>>> my_string
'"8023     "'
>>> my_string.strip('"')
'8023     '

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list