I am writing a program in python, it's very simple I just want to know how to make make the input from a user true if it only contains m, u or i in it but absolutely nothing else. my code runs but if the input is 'miud' it will return true because m i and u are in it. the code below is what I have so far, how can I change it to make it allow only the letters m u and i?
x=input("Enter your string")
if 'm' in x and 'i' in x and 'u' in x:
print("true")
else:
print("false")