using IronPython.Hosting;
using Microsoft.Scripting.Hosting;
public static void Main()
ScriptEngine engine = Python.CreateEngine();
ScriptScope scope = engine.CreateScope();
scope.SetVariable("y", y);
string path="C:\\Users\\TanyaYarish\\OneDrive - The Trustee for Gema Hybrid Discretionary Trust\\Desktop\\hello2.py.txt";
engine.ExecuteFile(path , scope);
dynamic x = scope.GetVariable("x");
dynamic z = scope.GetVariable("z");
Console.WriteLine($"{x} + {y} = {z}");