Your program works as expected but the logic is wrong. You compare a list of ingredients with the variable
input_text
but you display a result that gives the impression you compare a list of ingredients with the variable menu
.