Book Image

Raspberry Pi Projects for Kids (Second Edition)

By : Daniel Leonard Bates
Book Image

Raspberry Pi Projects for Kids (Second Edition)

By: Daniel Leonard Bates

Overview of this book

Table of Contents (14 chapters)

Summary


In this chapter, we used the Python programming language to create a game. We created an electronic circuit to act as the game controller, and used code to detect when the buttons were being pressed. We revisited the basics of the Python language, and saw how separating the code into multiple functions makes it more flexible and easier to manage.

In the next chapter, we will build on this Python knowledge to create an interactive map.