Strings for a newbie

John Machin sjmachin at lexicon.net
Fri May 27 08:27:33 EDT 2005


Malcolm Wooden wrote:
> Sorry John but that don't do it for me. Just get errors comming back
> 
> 
> "John Machin" <sjmachin at lexicon.net> wrote in message 
> news:42970d69 at news.eftel.com...
> 

>>
>>>>>s = "This is a sentence of words"
>>>>>a = s.split()
>>>>>a
>>
>>['This', 'is', 'a', 'sentence', 'of', 'words']
>>

Malcolm,

What errors did you get? Please post a copy of what you see on your 
screen; my palantir is on the fritz :-)

Cheers,
John



More information about the Python-list mailing list