Guest User

Untitled

a guest
Feb 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. term = "message" # term we want to search for
  2. input = input() # read input from user
  3.  
  4. words = input.split() # split the sentence into individual words
  5.  
  6. if term in words: # see if one of the words in the input is the word we want
  7. do_stuff() # the final result (what happens when there is the string included in the output)
  8. else:
  9. print("The term '" + term + "' has not been included in the input! :( ")
Add Comment
Please, Sign In to add comment