title: How can I run a python code with input on Linux terminal?
body: <p>I have a file named <code>myadd.py</code> that contains only the following function:</p>
  
  <pre><code>def myadd(a,b):
      return a+b
  </code></pre>
  
  <p>How can I run it on Linux terminal?
  I am looking for something easy like this:</p>
  
  <pre><code>python myadd 2,3
  </code></pre>
  
  <p>My final goal is to send multiple jobs to the server by making a <code>.sh</code> file containing:</p>
  
  <pre><code>bsub -J job1 python myadd 2,3
  bsub -J job1 python myadd 4,5
  bsub -J job1 python myadd 6,3
  .
  .
  .
  .
  </code></pre>
  
  <p>Let me know if I need to make any changes to be able to do something like the line above. </p>