In my code I would like to keep prompting the user to enter input, as long as life_status = 0. Life_status is set earlier in the code. I think I need a while loop for this, but I am not sure. How would I execute this as well? I've tried looking at a few resources like W3Schools, but I keep getting errors. Thanks!
if imput in age_up:
    print(age + 1)
    age = age + 1
    time.sleep(2)
elif imput in want_sad:
    print(random.choice(sad))
    time.sleep(2.5)
elif imput in spook_me:
    print(random.choice(spoops))
    time.sleep(2.5)
elif imput in vino:
    print(random.choice(vines))
    time.sleep(2.5)
elif imput in no_job:
    job = 0
    print("You quit your job.")
    time.sleep(2)
elif imput in neckrope:
    print("YOU ARE DEAD")
    exit()
else:
    print("That is not a valid response. Please try again.")
    time.sleep(1)
    imput = input(">>> ") ```
 
     
     
    