Begin to code with Python

Welcome to the Begin to code with Python web pages.

You can buy the book here.

You can find the tools for the book here.

You can find some videos about installing Snaps and Python here.

You can find my blog at

Importing Snaps

There is an error on page 66. Rather than it saying:

from snaps import *

It should just say:

import snaps

To make snaps work you just have to have the snaps program in the same folder as your program.

Using the keyboard with Snaps

There have been some reports of the keyboard reading function in Snaps not working correctly when you run your Python program from within an IDE such as pyCharm or IDLE. If you find the keyboard to be unresponsive, try running the Python program directly in Python, rather than inside an IDE.

If you have any questions about the links, the sample programs, or the book, you can get in touch with me via email on questions at You can also tweet any questions to @begintocode or @robmiles

Rob Miles