Read the whole file as a string - Tom Kleen

The function should compute the frequency of each word in the file and then output the list of words and their frequencies as shown below. ... string = string.replace(character, " ") The function would be used as follows: >>> wordFreq('sample.txt') a 2. no 1. this 3. ... Python is smart enough to figure out that we are trying to create a set as ... ................
................