title: 'str' object is not callable error
body: <p>How do I fix my run-time error in the code below?</p>
  
  <pre><code>#!/usr/bin/env python3
  import zipfile
  def extract(zipf, pwd):
      try:
          zipf.extractall(psw=(pwd))
          return
      except :
          return
  def main():
      zipf = zipfile.is_zipfile("dave.zip")
      pwdfile=open("pwdlist.txt", "r")
      for line in pwdfile.readlines():
          psw = line.strip()("\n")
          guess = extract(zipf, psw)
          if guess:
              print ("[+] Password is : %s"%(psw) + ("\n"))
              exit(0)
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>psw = line.strip()("\n") TypeError: 'str' object is not callable</p>
  </blockquote>