Trying out the solutions in IDLE

Once you download the solutions ZIP file, and extract it you will find the solutions for each chapter in the corresponding sub-directory.

Extracted ZIP archive

The PDF file contains explanations for each of the solutions similar to the explanations for the programs in the book.

Before you can try the programs out, you will have to open them first in IDLE. Let's consider the solution to a challenge posed in Chapter 6 to draw the Mandelbrot set - mandelbrot.py. Start IDLE and click on the menu item File > Open and navigate to the location where you extracted the directory above and open the file mandelbrot.py.

IDLE window

Snapshot of the source code

Running the program

To run the program, click on Run > Run Module and you should see the Mandelbrot set in the matplotlib window.

Mandelbrot Set

Mandelbrot set

All the solutions should be ready to run, try them out, make changes to experiment and let me know what you come up with!

Email me at doingmathwithpython@gmail.com or post your query/tip to any of the following community forums:

social