title: How can I play a sound while other lines of code execute simultaneously?
body: <p>I want my code to do this, but with music playing in the background:</p>
  
  <pre><code>import time 
  while True:
      print ('ligma')
      time.sleep(1.5)
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>import time 
  import winsound
  while True:
      print ('ligma')
      time.sleep(1.5)
      winsound.PlaySound("dank", winsound.SND_ALIAS)
  </code></pre>
  
  <p>but, it repeats the sound <strong>then</strong> repeats the word. I am expecting it to repeat the word and play the sound at the same time.</p>