Advertisement
Zoexploit

Untitled

Apr 1st, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. words = ["cat", "dog", "rhino"]
  2. def long_word_in_collection(words, name):
  3.     if name in words == True and  len(name) > 4:
  4.         print(True)
  5.     else:
  6.         print(False)
  7.        
  8. long_word_in_collection(words, "rhino")
  9. long_word_in_collection(words, "cat")
  10. long_word_in_collection(words, "monkey")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement