Nov-01-2016, 11:21 AM
(Oct-31-2016, 10:01 PM)MACA Wrote: Wait, wait, wait. How would I useHello!time.sleep(0.1)with thedef textTypefunction?
Like if I used it this way:
for ch in text: print (ch) time.sleep(0.1) textType("Hello Everybody!", 0.1)
The default behavior of print() functions is to add \n - a new line - character at the end of the printed text. So the next printed text will be printed bellow.
print(ch, end="")will fix it. The default is end="\n"