title: Searching an array for key words -python
body: <pre><code>array1=["hello","hi","hey"]
  q1=input("say hello-""\n")
  
  answer=q1.split()
  
  if array1[:] in answer:
      print("yes")
  else:
      print("fail")
  </code></pre>
  
  <p>I am trying to identify keywords from a user input this is what i have so far. I am planning to add a lot more code, but i can't quite get this part working. I think the problem is here:</p>
  
  <pre><code>  array1[:]
  </code></pre>
  
  <p>but i am not sure what to put inside the brackets to make the code check all the words in the array to compare to the user input's words.</p>
  
  <p>I am fairly new to python, hope you can help.</p>