title: Set a string input to accept an answer from an array of acceptable answers (Python 3.8.4)
body: <pre><code>#important variables
  thePhrase = input(&quot;What phrase will we be dealing with today?&quot;)
  menuInput = input(&quot;What would you like to do with the phrase?&quot;) 
  
  #search query tables
  phraseLenArray = [&quot;LEN&quot;, &quot;LENGTH&quot;, &quot;TEXT LENGTH&quot;, &quot;PHRASE LENGTH&quot;, &quot;STRING LENGTH&quot;, &quot;LENGTH OF THE TEXT&quot;, &quot;LENGTH OF THE PHRASE&quot;, &quot;LENGTH OF THE STRING&quot;, &quot;HOW LONG IS THE TEXT&quot;, &quot;HOW LONG IS THE PHRASE&quot;, &quot;HOW LONG IS THE STRING&quot;]
  phraseFilterArray = [&quot;FILTER&quot;, &quot;FILTER THE TEXT&quot;, &quot;FILTER THE PHRASE&quot;, &quot;FILTER THE STRING&quot;,]
  
  
  if menuInput == phraseLenArray.lower():
      phraseLen()
  elif menuInput == phraseFilterArray.lower():
          phraseFilter()
  
  
  def phraseLen():
      print(len(thePhrase))
  
  def phraseFilter():
      filterTxt = input(&quot;What are you trying to filter for?&quot;)
      if filterTxt in thePhrase:
          print(&quot;The filtered text,&quot;, filterTxt, &quot;was found in the text.&quot;)
      else:
          print(&quot;The filtered text was not found in the text&quot;)
  </code></pre>
  <p>I am trying to make the input &quot;menuInput&quot; accept answers from the arrays, being case insensitive.
  When I run this code the error message is,
  &quot;Line 10: AttributeError: 'list' object has no attribute 'lower'&quot;</p>