import pygame
pygame.mixer.init()
pygame.mixer.music.load(file)#any mp3 file
pygame.mixer.music.play()
while pygame.mixer.music.get_busy():
pygame.time.Clock().tick()
I know this is the code to play the music in python with pygame Can you explain why we use
while pygame.mixer.music.get_busy():
pygame.time.Clock().tick()