import winsound # Play Windows exit sound. winsound.PlaySound("SystemExit", winsound.SND_ALIAS)
import winsound winsound.PlaySound("SystemExit", winsound.SND_ALIAS)