pygame play mp3 code example
Example 1: pygame play sound
import pygame
pygame.mixer.init()
crash_sound = pygame.mixer.Sound("crash.wav")
crash_sound.play()
Example 2: python pygame play mp3
import pygame
pygame.mixer.init()
pygame.mixer.music.load('your_music_name.mp3')
pygame.mixer.music.play()
input('Insert something to end the player')