title: Python: SyntaxError: non-keyword after keyword arg
body: <p>When I run the following code </p>
  
  <pre><code>def regEx1():
    os.chdir("C:/Users/Luke/Desktop/myFiles")
    files = os.listdir(".")
    os.mkdir("C:/Users/Luke/Desktop/FilesWithRegEx")
    regex_txt = input("Please enter the website your are looking for:")
    for x in (files):
      inputFile = open((x), encoding = "utf8", "r")
      content = inputFile.read()
      inputFile.close()
      regex = re.compile(regex_txt, re.IGNORECASE)
      if re.search(regex, content)is not None:
        shutil.copy(x, "C:/Users/Luke/Desktop/FilesWithRegEx")
  </code></pre>
  
  <p>I get the following error message which points to the first line after the for loop.</p>
  
  <pre><code>      ^
  
  SyntaxError: non-keyword arg after keyword arg
  </code></pre>
  
  <p>What is causing this error?</p>