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