Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def long_word_in_collection(the_list, a_string):
- if a_string in the_list and len(a_string)>4:
- print(True)
- else:
- print(False)
- body_parts=["eye", "nose", "teeth"]
- long_word_in_collection(body_parts, "teeth") #example it must contain two arguments(the list and the string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement