title: Disable automatic printing in Python interactive session
body: <p>I am going to be holding a Python workshop to teach some beginner level programmers at my college Python.</p>
  
  <p>I am looking for a way to modify the default behavior of Python interactive sessions so that expressions do not automatically print out results. For example, take this following interactive session:</p>
  
  <pre><code>wil@calcifer:~$ python
  Python 2.7.3 (default, Aug  1 2012, 05:16:07)
  [GCC 4.6.3] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; x = 5
  &gt;&gt;&gt; y = 7
  &gt;&gt;&gt; x + y
  12
  &gt;&gt;&gt; first_name = "Test"
  &gt;&gt;&gt; last_name = "Person"
  &gt;&gt;&gt; first_name + last_name
  'TestPerson'
  &gt;&gt;&gt;
  </code></pre>
  
  <p>This would enforce the use of the <code>print</code> statement to avoid confusion later on.
  This isn't crucial, but I was surprised that I was unable to find any settings for this anywhere.</p>
  
  <p>I would be able to preconfigure the machine beforehand, so any solutions would work. Does anyone know if this is possible, or what change to the interactive sessions creates this effect?</p>