0
Printing a statment letter by letter
so can i do it?i mean when i want the program to print 'hello world' it prints it all at once.but i want to it first types h then e then l and rest like that.like RPG games.is it possible?
3 Réponses
+ 2
It won't work on sololearn but if you have python downloaded you can do
import time
word = 'hello world'
for letter in word:
print(letter,end="",flush=True)
time.wait(1)
+ 2
i'd say it is time.sleep(1), not time.wait(1)
0
your right