title: Printing a variable in an embedded Python interpreter
body: <p>I have written a small C program that embeds Python. I'm setting it up correctly using Py_Initialize() and Py_Finalize(), and am able to run scripts either using PyRun_SimpleString or PyRun_SimpleFile. However, I don't know how mimic the behavior of Python's own interpreter when printing variables.</p>
  
  <p>Specifically:</p>
  
  <pre><code>a = (1, 2, 3)
  print a
  </code></pre>
  
  <p>Works fine for me: it prints out (1, 2, 3)</p>
  
  <p>However:</p>
  
  <pre><code>a = (1, 2, 3)
  a
  </code></pre>
  
  <p>Prints out nothing at all. In Python's own interpreter, this would print out (1, 2, 3) as well. How can I make my code do what users would expect and print out the value?</p>
  
  <p>Thanks in advance!</p>