Answers for "do print statements slow down python"

0

slow print python

def slowPrint(string):
    for char in range(len(string)):
        print(string[char], end="")
        #time.sleep(x) can be used for a longer wait but is not needed...
        #for a noticable reduction in output speed
    print("")
Posted by: Guest on August-22-2020

Python Answers by Framework

Browse Popular Code Answers by Language