Re: [Tutor] words and lengths

2007-05-17 Thread calitar
James Matthews wrote: > Please include some code? > > http://www.goldwatches.com/watches.asp?Brand=39 Um...why does that link go to a page with expensive watches? Please no spamming on this mailing list. - Cole Armer ___ Tutor maillist - Tutor@pytho

Re: [Tutor] words and lengths

2007-05-17 Thread James Matthews
Please include some code? http://www.goldwatches.com/watches.asp?Brand=39 - Original Message - From: "Rikard Bosnjakovic" <[EMAIL PROTECTED]> To: "Emad Nawfal" <[EMAIL PROTECTED]> Cc: Sent: Thursday, May 17, 2007 3:57 AM Subject: Re: [Tutor] words and len

Re: [Tutor] words and lengths

2007-05-17 Thread Rikard Bosnjakovic
On 5/16/07, Emad Nawfal <[EMAIL PROTECTED]> wrote: > What's wrong with it, and how can I fix it? Alas, we are not mind readers. Instead of letting others guess, it's usually a better idea to write any syntax errors - or whatever - Python complains, or what the result you expect it to be, and what

Re: [Tutor] words and lengths

2007-05-16 Thread Bob Gailer
Emad Nawfal wrote: >> Hi All, >> I'm beginning to learn Python for linguistic research using the >> Natural Language Toolkit. I want to write a small piece of code to >> count lengths of words and print them a long with the words. I've >> tried this but it does not work. What's wrong with it, an

Re: [Tutor] words and lengths

2007-05-16 Thread Bob Gailer
Please use plain text. Color hurts my eyes, does NOT help me read your program. Emad Nawfal wrote: > Hi All, > I'm beginning to learn Python for linguistic research using the > Natural Language Toolkit. I want to write a small piece of code to > count lengths of words and print them a long with

Re: [Tutor] words and lengths

2007-05-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Emad Nawfal > Sent: Wednesday, May 16, 2007 9:40 AM > To: Tutor@python.org > Subject: [Tutor] words and lengths > > Hi All, > I'm beginning to learn Python for

[Tutor] words and lengths

2007-05-16 Thread Emad Nawfal
Hi All, I'm beginning to learn Python for linguistic research using the Natural Language Toolkit. I want to write a small piece of code to count lengths of words and print them a long with the words. I've tried this but it does not work. What's wrong with it, and how can I fix it? phrase2 = ['co