title: How to exchange data between Python and C++
body: <p>I want to write a program in Python that reads 2 numbers (either from a text file or from user input) call a C++ function that takes 2 arguments (the 2 numbers) adds them and returns the result to the Python program. I've already managed to do this using a text file (saving the numbers from python there and then calling the file in the C++ program). But I want to do it directly instead of having to use a text file as a medium. I want to be able to call the function and send it the arguments directly rather than having it to read them from a text file and I would like to have the output returned to the original python code. </p>
  
  <p>Any ideas as to how to proceed as I am fairly new in this area?</p>