How to put python in a cpp file?

10th Dec 2019, 5:05 PM
2 Answers
+ 2
Python is made using C/C++ and its own Python libraries. The question is not easy to answer possibly from being vague. What do you mean by put Python in cpp? If you mean excecute python code in Cpp, maybe. Probably not without doing something to make the conditions right.
10th Dec 2019, 5:35 PM
Manual - avatar
+ 1
Try to explain what you exactly want to achieve , this will help us better figure it out . If I'm not wrong , you're trying to execute the python files(scripts) through the your cpp program or vice versa
10th Dec 2019, 5:44 PM
Pranshu Ranjan
Pranshu Ranjan - avatar