title: How to call a another python program from a python program and arguments are passed while calling
body: <p>For eg,</p>
  <p>Script1.py  contains program to add two numbers.i want to call this file from script2.py and passing values.how its possible?
  Note :file script1.py is not placed in same folder.</p>
  <p>Script1:</p>
  <p>num1 = a;
  num2 = b;</p>
  <h1>//Add two numbers</h1>
  <p>sum = float(num1) + float(num2)</p>
  <h1>//Display the sum</h1>
  <p>print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))</p>
  <p>Script2:</p>
  <h1>//There is function to call script 1</h1>
  <p>def hello():</p>
  <pre><code> subprocess.Popen(['sudo', 'python','/MyRepository/services/uploaded/programmingAssignments/sum.py', '2', '2'])
  </code></pre>