so I actually want the program to keep on asking the same question over and over again.
ans = 'wrong'
alive = True
while alive == True:
    answer = input("""
----What do you want to do?(walk, or rest)----
    """)
    while(ans == 'wrong'):
        if answer == 'walk':
            print("nice")
            ans = 'true'
        elif answer == 'rest':
            print("you slept with your monsters")
            ans = 'true'
        else:
            print("Invalid Answer. Walk or Rest")
            answer = input("""
----What do you want to do?(walk, or rest)----
    """)
it does ask the player the same question but the answer is now set. When I first input my answer, it works perfectly but the second time, the program just ignores the input and asks the same question.
I want it to actually process the next answers and not ignore them. Please help.
 
    