title: Get user input while printing to the screen
body: <p>I would like to get user input while printing to the screen. I researched this a lot. but didn't find anything. I'm not very advanced with class programming in Python, so I didn't understand the other examples on stackoverflow.</p>
  
  <p>Example:</p>
  
  <pre><code>import time
  
  def user_input():
      while True:
          raw_input("say smth: ")
  
  def output():
      while True:
          time.sleep(3)
          print "hi"
  
  input()
  output()
  </code></pre>
  
  <p>I want the prompt to stay, even if the output is printing "hi". I already tried an example, but the input prompt disappears even if it is in a <code>while</code> loop.</p>