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?

7th Aug 2018, 7:40 AM
pixelman
pixelman - avatar
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)
7th Aug 2018, 7:53 AM
JME
+ 2
i'd say it is time.sleep(1), not time.wait(1)
7th Aug 2018, 9:21 AM
strawdog
strawdog - avatar
0
your right
7th Aug 2018, 9:27 AM
JME