Click on the Week to view the python script
Be sure to check your chapter 5 assignment against the official Python flow control page!
I added some special sauce on the last assignment - we were supposed to compare our results with the results at http://en.wikipedia.org/wiki/Letter_frequencies so what I did was use BeautifulSoup to parse the html on that page, and then actually compare the two charts. In order to parse the Wikipedia page I had to alter urllib's user-agent string - I found that info at http://wolfprojects.altervista.org/changeua.php.