Normally when I do a input for the user, Python waits until they press the enter key. However in my script for some reason Python isn't waiting for an input and keeps printing the text...
user_option()
, just has a few print statements in it...
If anyone could tell me how to make it so it will wait until the user enters an input that would be very much appreciated.
Code:
while True:
user_option()
decision = input("What coarse of action should I take?")
decision = decision.strip().lower()
if decision == "a":
rehydration()
elif decision == "b":
moderate_speed()
elif decision == "c":
fast_speed()
elif decision == "d":
rest()
I'm running this with Python 3.4.