title: How to insert a python code in C++?
body: <p>i am trying to embed a code python in c++. I have this python code :</p>
  
  <pre><code>#include &lt;Python.h&gt;
  
  int main(int arg)
  {
      Py_SetProgramName(argv[0]);
      Py_Initialize();
      PyRun_SimpleString("from time import time,ctime\n"
                         "print 'Today is',ctime(time())\0");
      Py_Finalize();
      return 0;
  }
  </code></pre>
  
  <p>but what i want is something like that :</p>
  
  <h1>include </h1>
  
  <pre><code>int main(int arg)
  {
      Py_SetProgramName(argv[0]);
      int a = 5;
      Py_Initialize();
      PyRun_SimpleString("a = " + a);
      Py_Finalize();
      return 0;
  }
  </code></pre>
  
  <p>but it does not work. I mean i want with python to display the value of the variable a.
  Thank you :)</p>