I am trying to make a textual game in python. All goes well however, I would like to make a function that will allow me to print something to the terminal, but in a fashion
In Python 2.x you can use sys.stdout.write instead of print:
print
for letter in str: sys.stdout.write(letter) time.sleep(.1)
In Python 3.x you can set the optional argument end to the empty string:
end
print(letter, end='')