Advertisement
Blessing988

Untitled

Feb 20th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. def long_word_in_collection(the_list, a_string):
  2.     if a_string in the_list and len(a_string)>4:
  3.         print(True)
  4.     else:
  5.         print(False)
  6.  
  7. body_parts=["eye", "nose", "teeth"]
  8.  
  9. 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