How can I create a while loop that asks a user a fruit and if the fruit is 5 or less characters print i like (the fruit) otherwise print i do not like (the fruit), and when Stop is entered the program stops.
user_input = input("Enter a fruit ")
while user_input != "Stop":
if user_input == "Stop":
print("Goodbye")
elif len(user_input) <= 5:
print("I like ", user_input)
elif len(user_input) > 5:
print("I do not like ", user_input)
This is what I tried but the loop is continuous and does not stop until it times out. How can I easily fix this with the code I have already written?