title: Python: Printing letters one by one in Command Prompt
body: <p>Recently I've picked up  Python 3.4 programming and I read this other question regarding how to  <a href="https://stackoverflow.com/questions/4099422/print-slowly-in-python-simulate-typing">printing slowly (Simulate typing)</a>, and used a similar def in my code.</p>
  
  <pre><code>import time
  
  def type(str):
       for letter in str:
          print(letter, end='')
          time.sleep(0.02)
      print("\n")
  
  type("This sentence is typed.")
  </code></pre>
  
  <p>It all worked fine in IDLE, but once I tried running it using Windows Command prompt, CMD waits the time it took IDLE to type it (half a second in this case) and then spits it out as if it had been printed.</p>
  
  <p>I figured the time.sleep statement was broken one way or another, although</p>
  
  <pre><code>print("One")
  time.sleep(2)
  print("Two")
  </code></pre>
  
  <p>worked just fine.</p>
  
  <p>Is there any way of printing one letter at a time with a short interval between the letters, or is it simply not possible?</p>
  
  <p>Thanks in advance!</p>