I'm trying to play a sound in a "Hello World" Python program for a children's class. I used the pygame library for that, but the program can't open the sound file. How can I fix this?
import pygame
pygame.init()
song = pygame.mixer.Sound('robot.wav')
song.play()
print ("Hello, world!")
Error = song = pygame.mixer.Sound('robot.wav')
pygame.error: Unable to open file 'robot.wav'