I have written a function that types out each letter of a string individually with an interval of 0.06 seconds between each letter.
import time
def Type(string):
for i in string:
print(i, end="")
time.sleep(0.06)
print("\n")
time.sleep(0.8)
On my computer it works fine, but if I try it in VS Code on my new laptop it doesn't print them individually as it does on my PC, but rather goes through all the waiting intervals and then prints the string as a whole.
Help is much appreciated as I really can't figure it out