You cannot print a function such as time.sleep(1)
because it doesn't return anything, therefore, the None. Instead, try the following:
from sys import stdout
from time import sleep
text = "What's your problem?"
text = text.split()
for k in text:
stdout.write(k+' ')
stdout.flush()
sleep(1)
print '\n'
Output:
What's $ your $ problem?
The $
signifies the pause of 1 second. If you use the following code:
import time
text = "What's your PROBLEM?"
text = text.split() #text is a list now: ["What's", "your", "PROBLEM?"]
for i in text:
print i,
time.sleep(1)
It prints everything at once after 3 seconds.