I am trying to make a text-based adventure game. I am new to Python and I am trying to delay the text like in the older games.
from time import sleep
import sys
def de(string):
for c in string:
print(c, end='')
sys.stdout.flush()
sleep(0.1)
Throughout the code, do things like:
print(de("\nPlayer health: "), player_health,)
or
user_fighter = input(de("what is the name of your fighter?"))
The output always ends in "None"
e.g.
Player health: None 100
How do I fix this?