to stop playing the background music immediatelycall the pygame mixer music stop(function this function has no arguments here is some example code of the sound methods and functionsloading and playing sound effectsoundobj pygame mixer sound('beepingsound wav'soundobj play(loading and playing background musicpygame mixer music load(backgroundmusic mp 'pygame mixer music play(- some more of your code goes here pygame mixer music stop(summary this covers the basics of making graphical games with the pygame framework of coursejust reading about these functions probably isn' enough to help you learn how to make games using these functions the rest of the in this book each focus on the source code for smallcomplete game this will give you an idea of what complete game programs --look like||so you can then get some ideas for how to code your own game programs unlike the --invent your own computer games with python|bookthis book assumes that you know the basics of python programming if you have trouble remembering how variablesfunctionsloopsif-else statementsand conditions workyou can probably figure it out just by seeing what' in the code and how the program behaves but if you are still stuckyou can read the --invent with python|book (it' for people who are completely new to programmingfor free online at email questions to the authoral@inventwithpython com