title: Can a batch file execute commands within a python shell?
body: <p>Can I use a batch file to start a python shell and execute commands? I know that</p>
  
  <pre><code>python
  </code></pre>
  
  <p>will start a python shell, but a batch file containing</p>
  
  <pre><code>python
  1+1
  </code></pre>
  
  <p>will first run python, and then only when you quit python will it attempt to run 1+1. It will not execute any commands within the python shell.</p>