On Mon, 7 Mar 2005 18:58:20 -0500, Leeds, Mark <[EMAIL PROTECTED]> 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,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to