Strings for a newbie

2005-05-27 Thread Malcolm Wooden
I'm trying to get my head around Python but seem to be failing miserably. I use RealBasic on a Mac and find it an absolute dream! But PythonUGH! I want to put a sentence of words into an array, eg "This is a sentence of words" In RB it would be simple: Dim s as string Dim a(-1) as string D

Re: Strings for a newbie

2005-05-27 Thread Malcolm Wooden
Sorry John but that don't do it for me. Just get errors comming back "John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Malcolm Wooden wrote: >> I'm trying to get my head around Python but seem to be failing miserably. >>

Re: Strings for a newbie

2005-05-27 Thread Malcolm Wooden
\lib\string.py", line 122, in split return s.split(sep, maxsplit) AttributeError: 'list' object has no attribute 'split' "John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Malcolm Wooden wrote: >> Sorry John but that don&

Re: Strings for a newbie

2005-05-27 Thread Malcolm Wooden
gt; wrote in message news:[EMAIL PROTECTED] > "Malcolm Wooden" <[EMAIL PROTECTED]> writes: > >> I'm trying to get my head around Python but seem to be failing miserably. >> I >> use RealBasic on a Mac and find it an absolute dream! But PythonUG