# wordCount-4.10.py # Count the number of words in a sentence # Neal Nelson 2007.10.22 import string def main(): sentence = raw_input("Enter a sentence: ") print "The sentence has %d words" % len(string.split(sentence)) main()