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 pygameon the command prompt
You may have to do
py -m pip install pygameon the command prompt on some windows computers.
If you ever need help with pygame, you can check out its documentation here