title: Typing effect in Python
body: <p>I want to make such program which reads characters from a string and prints each character after some delay so its look like typing effect.</p>
  
  <p>Now my problem is sleep function is not working properly. It print whole sentence after long delay.  </p>
  
  <pre><code>import sys
  from time import sleep
  
  words = "This is just a test :P"
  for char in words:
      sleep(0.5)
      sys.stdout.write(char)
  </code></pre>
  
  <p>I use "sys.stdout.write" for removing whitespace between characters.</p>