import os os.getcwd() # Log this line. soundObj = pygame.mixer.Sound('beeps.wav')
Here is what the above code is Doing:
1. Importing the pygame library.
2. Creating a sound object from the beeps.wav file.
3. Calling the play() method on the sound object.