Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # име на продукт -> текст
- # banana, apple, kiwi, cherry, lemon и grapes -> fruit
- # tomato, cucumber, pepper и carrot -> vegetable
- # other -> unknown
- product = input()
- if product == "banana" or product == "apple" or product == "kiwi" or product == "cherry" \
- or product == "lemon" or product == "grapes":
- print("fruit")
- elif product == "tomato" or product == "cucumber" or product == "pepper" or product == "carrot":
- print("vegetable")
- else:
- print("unknown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement