Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words = ["cat", "dog", "rhino"]
- def long_word_in_collection(words, name):
- if name in words == True and len(name) > 4:
- print(True)
- else:
- print(False)
- long_word_in_collection(words, "rhino")
- long_word_in_collection(words, "cat")
- long_word_in_collection(words, "monkey")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement