Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Long_word_in_collection
- words = ["car", "train", " bus", "plane", "ship"]
- def long_word_in_collection(words,a = ""):
- if a in words and len(words) > 4:
- print("True")
- else:
- print("False")
- long_word_in_collection(words, "car")
- long_word_in_collection(words, "fish")
- #long_word_in_collection(words, 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement