Tuesday, March 3, 2009

Chapter 3 -- Listing 3.12 Vignere cipher

Line 5 of Listing 3.12 contains the statement charNum = 0. The variable charNum is not used anywhere in the encryptVignere function and the line is not needed.

Line 2 is also extraneous. It contains the template docstring for the encryptVignere function.

1 comment:

  1. My apologies if this is not the correct place for this post -- could not find a way to create a new submission.

    Chapter 3 -- Listing 3.4 String Indexing
    Final sample shows
    >>> name(len(name}]
    as returning the last character, but in fact will raise an IndexError.

    ReplyDelete