slow print python

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

showing results for - "slow print python"
Mario
31 Sep 2020
1import sys
2import time
3def slowprint(s):
4	for c in s + '\n':
5		sys.stdout.write(c)
6		sys.stdout.flush()
7		time.sleep(1./10)
8slowprint("this this writen slowly in my terminal")
Paolo
20 Jan 2019
1def slowPrint(string):
2    for char in range(len(string)):
3        print(string[char], end="")
4        #time.sleep(x) can be used for a longer wait but is not needed...
5        #for a noticable reduction in output speed
6    print("")
7