Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type_of_product = input()
- if type_of_product == "banana"\
- or type_of_product == "apple" \
- or type_of_product == "kiwi" \
- or type_of_product == "cherry" \
- or type_of_product == "lemon" \
- or type_of_product == "grapes":
- print("fruit")
- elif type_of_product == "tomato"\
- or type_of_product == "cucumber"\
- or type_of_product == "pepper"\
- or type_of_product == "carrot":
- print("vegetable")
- else:
- print("unknown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement