title: How to give input to a batch file using Python script?
body: <p>Let's say I have a batch file, which asks me for my name as input. I put my name enter. This is the manual way.</p>
  
  <p>But I wanted to try something with Python. Is it possible that I make a variable in Python script and put my name in the variable and pass that variable to the bat file when it asks for input?</p>
  
  <p>The very first step of my bat file is to ask me my name. Asking name batch file is for test purpose. My main batch file has this code:</p>
  
  <pre><code>@ECHO OFF
  
  :choice
  set /P c=Do you want to continue [Y/N]?
  if /I "%c%" EQU "Y" goto :yes
  if /I "%c%" EQU "N" goto :no
  goto :choice
  
  
  :yes
  "scripts\enter.py" yes
  goto :continue
  
  :no
  "scripts\kick_out.py" no
  
  :continue
  pause 
  exit
  </code></pre>
  
  <p>So, I hope this helps. I want to pass about 2 inputs. First <kbd>Y</kbd> and other when it calls <code>enter.py</code> it asks my login details. My username and password. So, I need to make 3 inputs. How can I do that?</p>