Advertisement
Adehumble

Week4 Coding Exercise 4

Feb 22nd, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. #4
  2.  
  3. def long_word_in_collection(expected_list,expected_string):
  4.     print("True" if (expected_string in expected_string) and len(expected_string)>4 else "False")
  5.    
  6.    
  7. user_list=input("Please,don't be shy. Enter any sentence: ").split(" ")
  8. user_string=input("Enter any word yoh wish to test: ")
  9.  
  10. long_word_in_collection(user_list,user_string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement