I am trying to write a some questions with yes or no answers and want to be able to tell the user to enter yes or no if they type another string (not yes or no).
I have used a While True loop, but everytime I run this it keeps going back to q1.
while True:
q1 = input("Switch on, yes or no")
q1= q1.title()
if q1 == "No":
    print("Charge your battery")
    break
elif q1 == "Yes":
    q2 = input("Screen working?")
    q2 = q2.title()
    if q2 == "No":
        print("replace screen")
        break
    elif q2 == "Yes":
        q3 = input("Ring people?")
        q3 = q3.title()
        if q3 == "No":
            print("Check your connecting to your network")
            break
        elif q3 == "Yes":
            print("Not sure")
            break
print("Thanks for using")    
 
     
    