Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def long_word_in_collection(alist, string):
- if string in alist and len(string) > 4:
- return True
- else:
- return False
- print(long_word_in_collection(["abidemi", "grace", "Doyin", "Teni"], "grace"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement