Just like with other not-built-in modules, we will first have to install pygame before we can use it to make our games.
pip install pygame on the command prompt
You may have to do
py -m pip install pygame on the command prompt on some windows computers.
If you ever need help with pygame, you can check out its documentation here