title: Python: Error:TypeError: findall() missing 1 required positional argument: 'string'
body: <p>I am trying to scrub a text document with specific parameters. Have tried different iterations of the <code>x=...</code> line but the program isn't able to read the all line.</p>
  
  <pre><code>import re
  #import csv
  
  text = open(r'C:\Users\Vincent\Documents\python\theSortingHat\100000DirtyNames.txt') #open text file
  for line in text: #iterate through every line
      #return list of names in that line
      x = re.findall ('^([a-zA-Z]-?$')
      #if an actual name is found
      if x != 0:
          print(x)
  </code></pre>
  
  <p>I receive:</p>
  
  <blockquote>
    <p>Error:TypeError: findall() missing 1 required positional argument:
    'string'</p>
  </blockquote>