Ironpython Blog Posts

How to call python code in c# applications

.net supports 98 languages as a whole and python is one of the scripting language among all.In this article i will demonstrate how to call a python program from c# application.I do not want to go much deep into the theory, i will just show you hands-on.This will be helpful to the people who already have atleast some knowledge on c# as well as on python.
Steps:
a)create one python file named pythonNetC.py and add the below content to the file
class Calculator:
def add(self,argsA,argsB):
return argsA+argsB
def sub(self,argsA,argsB):

1 Likes 1826 Views