The programs so far have been primarily using a procedural style of programming. The procedural coding style is a good way to learn programming, but there are benefits to using object-oriented programming, which will be covered next. A useful thing about Python is that it supports many different coding styles, even allowing multiple styles in the same code. You have already been using some object-oriented code when making use of Python modules, including Pygame Zero.
After explaining the main concepts of object-oriented programming, this chapter will start a new game. ...