Showing posts with label Chapter 8. Show all posts
Showing posts with label Chapter 8. Show all posts

Thursday, April 4, 2013

Session 8.7

The example session on page 284, Session 8.7 has print statements that are missing parenthesis. This will cause a syntax error under Python 3.x For example the first two lines should look like this:

>>> d = neighborCount(text)
>>> print(d['e'])

Other print statements in this session should also have parenthesis.

Monday, September 28, 2009

Chapter 8 Data Files

Again, several have asked for easier access to the sample data files used. Here are links to download the dictionary of words we used in the cryptanalysis chapter along with a link to the text of War of the Worlds.


War of the Worlds




wordlist.txt

Wednesday, May 20, 2009

Chapter 8 -- Exercise 8.11

Question 8.11 asks you to provide the sort function a cmp function rather than a keyword function. This is old school. In Python 3.0 cmp was removed.