Re: countint words from an input string

2005-01-07 Thread Simon Brunning
On Fri, 7 Jan 2005 15:58:06 +0100, Øystein Western <[EMAIL PROTECTED]> wrote: > Try to write som code that will get an input string from the user. Futher > more, I'd like to have the program to count all the word the user has > written. > > Startet out like this: > > /- > s = raw_inpu

countint words from an input string

2005-01-07 Thread Øystein Western
Hello! Try to write som code that will get an input string from the user. Futher more, I'd like to have the program to count all the word the user has written. Startet out like this: /- s = raw_input("Write a text line") print s.split() / How can I count the words