Play music with Python

Hello Friends, I am making a script in Python which will help me to Play-Music in Python, I am using module “pygame”. Script is able to run properly but not able to play music.

I am using Ubuntu 14.04.


from pygame import mixer

def time_checker():
	mixer.init()
	mixer.music.load('apple.mp3')
	mixer.music.play()

time_checker()


Thanks I am able to solve it.

Actually play() is not blocking, We have to block code at play() method to run music.

http://pastebin.com/fvUej9r0