1import pygame
2
3pygame.mixer.init()
4crash_sound = pygame.mixer.Sound("crash.wav")
5crash_sound.play()
1#has to be in .mp3 format
2#has to be in same folder
3#load the music
4pygame.mixer.music.load('song.mp3')
5#play the music infinite
6pygame.mixer.music.play(-1)
7#or play it one time
8pygame.mixer.music.play(0)