Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''function to check if a string is in a given list(lst)
- and if the string has more than four characters'''
- def long_word_in_collection(lst,string):
- if (string in lst) and (len(string) > 4):
- return True
- else:
- return False
- long_word_in_collection()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement