Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product = input()
- #"fruit" имат следните възможни стойности: banana, apple, kiwi, cherry, lemon и grapes
- #"vegetable" имат следните възможни стойности: tomato, cucumber, pepper и carrot;
- #unknown
- 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