Re: [Tutor] A string-manipulation question

2007-04-02 Thread HouseScript
>>The only "hitch" I see is how one tells that an initial >>consonant is a vowel sound or not. (honor vs home)? The above is exactly what I was thinking about, theres no way I could think of besides creating a dict for the few thousand English words that have this trait. Then run a search agai

Re: [Tutor] A string-manipulation question

2007-03-30 Thread HouseScript
Alan Gilfoy wrote: > Is there a way in Python to separate a string into its component words. you could do something like this: >>> x = Is there a way in Python to seperate a string into its compontent words. >>> x.split() that would yield: ['Is', 'there', 'a', 'way', 'in', 'Python', 'to', 'se