title: AttributeError: 'list' object has no attribute 'isdigit' extract numbers from data that is found
body: <pre><code>AttributeError: 'list' object has no attribute 'isdigit'
  </code></pre>
  
  <p>This is a persistent error I keep receiving, I am searching for data and it gets the people name, form and score, I am trying to get the scores into an average,</p>
  
  <pre><code>pls enter a fullname &gt;&gt; Geoffrey Chiasson
  Geoffrey Chiasson   F   6   1   3 
  </code></pre>
  
  <p>I'm trying to get the 6 1 and 3 out of it.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>def searchQuerySurname(alist):
      searchQuery = [ ]
      nofound = 0 ## no found set at 0
      surname = input("pls enter a fullname &gt;&gt; ") ## asks user for surname
      surname = surname.lower() ## converts to lower case
      for row in alist:
          if row[0].lower() == surname: ## surname appears in row0
                searchQuery.append(row) ## appends results
                numbers =int(filter(searchQuery.isdigit, str1))
                nofound = nofound + 1 ## increments variable
      if nofound == 0:
          print("there were no matches") 
      return searchQuery
  </code></pre>
  
  <p>I get this as it crashes:</p>
  
  <pre><code>AttributeError: 'list' object has no attribute 'isdigit' 
  </code></pre>