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.

No comments:

Post a Comment