How do I make pygames play audio from a folder?

  pygame, python

Hello I’m new to programming and I wanted to make a song player.

import os
from pygame import mixer
Path = input("please provide path to folder: ")
os.chdir(Path)
mixer.init()
mixer.music.load.(Path)

This is my code so far.

Source: Python Questions

LEAVE A COMMENT