delay print in python

Solutions on MaxInterview for delay print in python by the best coders in the world

showing results for - "delay print in python"
Valentina
25 Jun 2017
1>>> import time
2>>> import sys
3>>> blah = "This is written slowly\n"
4>>> for l in blah:
5...   sys.stdout.write(l)
6...   sys.stdout.flush()
7...   time.sleep(0.2)
8...
9This is written slowly