title: Python - If string contains a word from a list or set
body: <p>I have searched quite thoroughly and have not found a suitable answer. I am new to Python/Programming, so I appreciate any advice I can get:</p>
  
  <p>I am trying to search user input strings for certain key words. For example, we'll say filtering out profanity. From my research, I have been able to make the following dummy example:</p>
  
  <pre><code>Swear = ("curse", "curse", "curse") #Obviously not typing actual swear words, created a set
  Userinput = str.lower(input("Tell me about your day: "))
  
  if Userinput in Swear:
       print("Quit Cursing!")
  else:
       print("That sounds great!")
  </code></pre>
  
  <p>Using the above, if the user enters an exact word form the set as their entire string, it will print "quit cursing"; however, if the user enters "curses" or "I like to say curse" it will print "That sounds great!"</p>
  
  <p>Ultimately what I need is to be able to search the entire string for a key word, not an exact match of the entire string. Ex: "I went to the park and felt like screaming <strong>curse</strong>s" should return true for a match. </p>