Professional Documents
Culture Documents
Chapter 08
Chapter 08
Chapter 08
split(SampleString): occurrences[word] = occurrences.get(word, 0) + 1 for word in occurrences.keys(): print "The word", word, "occurs", occurrences[word], \ "time(s) in the string"