Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def long_word_in_collection(alist, string):
  2.     if string in alist and len(string) > 4:
  3.         return True
  4.  
  5.     else:
  6.         return False
  7.  
  8.  
  9. print(long_word_in_collection(["abidemi", "grace", "Doyin", "Teni"], "grace"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement