Advertisement
ancestor_tunji

#Long_word_in_collection

Feb 22nd, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #Long_word_in_collection
  2. words = ["car", "train", " bus", "plane", "ship"]
  3. def long_word_in_collection(words,a = ""):
  4.     if a in words and len(words) > 4:
  5.         print("True")
  6.     else:
  7.         print("False")
  8. long_word_in_collection(words, "car")
  9. long_word_in_collection(words, "fish")
  10. #long_word_in_collection(words, 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement