Nov-23-2019, 04:53 PM
How would I make it so the user only has to type heal once?
if (input() == "hunt"): print("You encountered a slime! What would you like to do?") elif (input() == "heal"): print("Your health is restored!")However, the user has to type something that is not hunt, then type heal, and then it runs the elif statement. I know it is because it first asks for input, and it does not see hunt, so it asks for input again, and then if the second input is heal it outputs the print statement.