it is possible to create a program which is written in python and C++ by using cython How would you use this class written in python (if possible) inside some cpp file (which uses the "calcuations" function, and prints "happy birthday"), by using cython?
file1.py:-
class mathClass:
def __init__(self,number):
self.number = number
def calcuations(self):
self.number = self.number + 1
print(self.number)
math = mathClass(10)
Edit
Don't miss understand me, but "have you heard about cython" is often mentioned in stackoverflow, and I did some research, and by my understading (I beg you, correct me if I am wrong), cython is a language which is similar to python and can be interpreted by c++ or by python, but I am not sure if it can actually be used to link python to c++ (I didn't managed to find any tutorials/examples)