Advertisement
simeonshopov

Fruit or vegetable

Sep 19th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. s = input()
  2.  
  3. if (s == "banana" or s == "apple" or s == "kiwi" or s == "cherry" or s == "lemon" or s == "grapes"):
  4.   print("fruit")
  5. elif (s == "tomato" or s == "cucumber" or s == "pepper" or s == "carrot"):
  6.   print("vegetable")
  7. else:
  8.   print("unknown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement