To summaries I am making a basic tde calculator and I want the user to input how active they are per week The problem I am having is after typing how active the user is I want the condition to end but the input functions still stay open. I've tried defining "input()" but it still doesnt work.
Here is an example code Try typing in lightly active and youll see the input still stays open instead of exiting the condition
if input() == "sedentary":
print(5 * 1.2)
elif input() == "lightly active":
print (5 * 1.6)
else:
input()
print ("not recognized")
Aucun commentaire:
Enregistrer un commentaire