title: Python pause loop on user input
body: <p>Hey I am trying to have a loop be pausable from user input like having a input box in the terminal that if you type pause it will pause the loop and then if you type start it will start again.</p>
  
  <p>Something like this but having the '#Do something' continually happening without waiting for the input to be sent.</p>
  
  <pre><code>while True:
      #Do something
      pause = input('Pause or play:')
      if pause == 'Pause':
          #Paused
  </code></pre>