Pygame is a library that makes it easier to write games for the Raspberry Pi—or more generally for any computer running Python. The reason why a library is useful is that most games have certain elements in common,
and you’ll encounter some of the same difficulties when writing them. A library such as pygame takes away
some of this pain because someone really good at Python and game programming has created a nice little pack-
age to make it easier for us to write games. In particular, pygame helps us in the following ways: