Chapter 4 - Guess the Number
Chapter Content and Source Code
Read Chapter 4 - Guess the Number
Download the source for guess.py.
Or you can copy and paste the code from here:
Online Trace Tool
Trace through the source code online. (There is also a second online trace.)
Online Diff Tool
If you've typed in the source code, but are seeing errors, you can compare your code to the book's code with the online diff tool.
Copyright © 2008, 2009, 2010 by Albert Sweigart
"Invent Your Own Computer Games with Python" 2nd Edition is free to copy and distribute under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.