title: is there a way to execute a python program using c#?
body: <p>I want to call my python program and get it executed automatically as it gets called, using c#. I have done uptill opening the program but how to run it and the get the output. It is my final year project kindly help me out.Here is my code:</p>
  
  <pre><code>Process p = new Process();
          ProcessStartInfo pi = new ProcessStartInfo();
          pi.UseShellExecute = true;
          pi.FileName = @"python.exe";
          p.StartInfo = pi;
  
          try
          {
              p.StandardOutput.ReadToEnd();
          }
          catch (Exception Ex)
          {
  
          }
  </code></pre>