I will System.Diagnostics.Process for this:
using System;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
namespace MySpace {
public class MyProgram {
public static void Main(string[] args){
Process p = new Process();
p.StartInfo = new ProcessStartInfo(@"C:\Python27\python.exe", @"FILEPATH")
{
RedirectStandardOutput = true,
UseShellExecute = false,
CreateNoWindow = true
};
p.Start();
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
Console.WriteLine(output);
}}}
This will print the result of the python program to c# console
for(var i=0; i<200; i++) Console.WriteLine("Hey");