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.
Subscribe to:
Post Comments (Atom)
My apologies if this is not the correct place for this post -- could not find a way to create a new submission.
ReplyDeleteChapter 3 -- Listing 3.4 String Indexing
Final sample shows
>>> name(len(name}]
as returning the last character, but in fact will raise an IndexError.