samedi 11 avril 2020

This giving me a same result!!!!!! FOR ALL 3 Why? What is wrong here? [duplicate]

while shopping:
    user_input = input(
        f'What area do you want to explore?: \n a) Food \n b) Fruit \n c) Dairy \n:').upper
    if user_input == 'A' or 'FOOD':
        print(food_list)
        break

    elif user_input == 'B' or 'FRUIT':
        print(fruit_list)
        break

    elif user_input == 'C' or 'DAIRY':
        print(dairy_list)
        break

Aucun commentaire:

Enregistrer un commentaire