Wednesday, September 23, 2009

Chapter 3 Session 3.4

The last expression of Session 3.4 should be name[len(name)-1] not name[len(name)]. name[len(name)] generates a range error because the length of the string is 1 past the end of the string.

No comments:

Post a Comment