Mar-05-2020, 06:55 PM
Hello! I am brand new Python but have been coding VBA for a few years. Running through my introductory labs, I am running into a problem using the Boolean test. No errors are thrown but the boolean result is incorrect and I am following the syntax correctly to the best of my limited knowledge.
I defined the variable correctly:
I defined the variable correctly:
menu = "salad, pasta, sandwich, pizza, drinks, dessert" print('pizza' in menu)
Output:True
When I introduce an input variable, something is busting.menu_ask = input("What would you like to order? ") What would you like to order? pizza print(menu_ask,"in menu =",'menu_ask' in menu)
Output:pizza in menu = False
Can anyone help me out here? This seems so straight forward. Thank you for any consideration.