title: How to run application with parameters in Python?
body: <p>I need to run an application (binary file) and pass arguments using a Python code. Some arguments represent strings got during Python file processing.</p>
  
  <pre><code>for i in range ( len ( files ) ) :
      subprocess.call(["test.exe", files[i]]) //How to pass the argument files[i]
  </code></pre>
  
  <p>Thanks...</p>
  
  <p><strong>Updated question:</strong></p>
  
  <hr>
  
  <p>Maybe I do not understand passing arguments in Python 3. A code without parameters runs OK</p>
  
  <pre><code>args = ['test. exe']
  subprocess.call(args)
  </code></pre>
  
  <p>However the code with parameter causes an error:</p>
  
  <pre><code>args = ['test. exe']
  subprocess.call(args, '-f')  //Error
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Error File "C:\Python32\lib\subprocess.py", line 467, in call
  return Popen(*popenargs, **kwargs).wait()
  File "C:\Python32\lib\subprocess.py", line 652, in __init__
  raise TypeError("bufsize must be an integer")
  TypeError: bufsize must be an integer
  </code></pre>