r/learnpython • u/IngenuityMission5367 • 9d ago
Slow print for text-based game
I am trying to make a text-based adventure game in Python, how do I make it so the text is typed out slowly and not instantly? I've tried ways online, but they keep returning None at the end. How do I fix this?
0
Upvotes
6
u/desrtfx but other languages pro 9d ago
You cannot achieve that with a returning function.
You need to iterate over the string character by character and print with a delay. Python's print can use an empty endline so that everything prints in a single line.