Conventions Used in This Book

Source code, function definitions, and interactive sessions appear in monospaced font. Comments appear in bold monospaced font preceded by a hash mark for easy reading. For example, this quick interpreter session checks the version of the Python interpreter. The >>> at the start of a line is the Python interpreter prompt and the text after the prompt is what you would type:

>>> print sys.version

2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)]

References to variables in function definitions appear in italics. For example, the function random.choice(seg) chooses a random element from the sequence seq and returns it.

We divided up the writing of this book's chapters between ourselves. So, throughout the book's body, we use "I" (not "we") to relate our individual opinions and experiences.

Was this article helpful?

0 0

Post a comment