SHARE
TWEET

Fruit or vegetable

simeonshopov Sep 19th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top