Is it possible to play or make music in Python?

Simplest way to play sound is to import webbrowser and do webbrowser.open for the sound file. It uses the associated player for the file type. Other possibility is to for example to use pyGame's sound feature as above related Code Snippet for MIDI files.