play sound on input python code example Example: Play sound in python import winsound winsound.PlaySound('sound.wav', winsound.SND_FILENAME)