quick question

Steve Holden steve at holdenweb.com
Mon Mar 7 19:59:33 EST 2005


Leeds, Mark wrote:
> I have a string variable say “8023     “ and
> 
> I want to get rid of the beginning
> 
> And ending quotes.
> 
>  
> 
> I’ve tried different things
> 
> But haven’t had any success.
> 
>  
> 
> I’m definitely a python hacker and
> 
> Not an expert. Thanks.
> 
  >>> x = '"This is a quoted string"'
  >>> print x
"This is a quoted string"
  >>> print x[1:-1]
This is a quoted string
  >>>

regards
  Steve




More information about the Python-list mailing list