Since you are not liking my explanation of my program I have changed it purely to only a question now: how do I allow the program to continue to check what the input was and apply a rule according until the output is mu
x = input("Enter your string: ")
while not set(x).issubset({'m', 'u', 'i'}):
    print("false")
    x = input("Enter your string")
    print("Your String is " + x)
if x == ("mu"):
    print("game complete")
    quit()
   #I understand that right now I am only checking if x is mu and then
#displaying the question input
#not sure how to bring the rules into the loop too
else:
    while x !=("mu"):
        Question = int(input("Which rule would you like to apply? enter numbers 1-4: ")
if Question is 1:
    x = (x + "l")
    print(x)
elif Question is 2:
    print("2")
elif Question is 3:
    print("3")
elif Question is 4:
    print("4")
elif Question is not 1 or 2 or 3 or 4:
    print("invalid rule try again")
 
    