[Tutor] Tutor Digest, Vol 112, Issue 29

Alan Gauld alan.gauld at btinternet.com
Mon Jun 10 09:50:24 CEST 2013


On 10/06/13 06:49, Mike Nickey wrote:
> Thank you Alan,
> I appreciate your help.
>
> The issue that I'm having is that split() doesn't seem to meet the need.
> The words such as "isn't" comes back as "isn't" rather then "isn" and "t".

How are you using split?
This works for me:

 >>> "isn't".split("'")
['isn', 't']


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list