So I'm having some trouble with Python. I have a code that is:
import time
def printChat(string, sleepTime):
for a in string:
print (a, end="")
time.sleep(sleepTime)
print()
When I do printChat("Hello", 0.1) it should print a letter and wait 0.1 seconds and then print the next one, but instead, it waits 0.5 seconds (as 'hello' is 5 characters long) and then prints hello all of a sudden. Any idea why that is?