title: How to play music in python using pygame?
body: <pre><code>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()
  </code></pre>
  
  <p>I know this is the code to play the music in python with pygame
  <strong>Can you explain why we use</strong></p>
  
  <pre><code>while pygame.mixer.music.get_busy():
     pygame.time.Clock().tick()
  </code></pre>