> how to use strip just once to get rid of both kinds of quotes, single and 
> double. It seems necessary to do it something like this:

JUst escape the quote character:

s.strip('\'"')

HTH,

Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to