python fast writing of a variables name and value
<p>I am porting some code from matlab to python and i see that I miss fast variable content inspection and printing of the matlab (in scripts) like shown below.</p>

<pre><code>a=6

a =

     6
</code></pre>

<p>Same thing in python:</p>

<pre><code>a=6 ; print "a = \n",a
a =
6
</code></pre>

<p>In a matlab script if you write an assignment like shown above, without a semicolon at the end, it prints just like that. You can write the whole script like that, and later shutdown all those lines with semicolons. It is very helpful for early debugging purposes.</p>

<p>Just now, I scanned all lines with assignments, and put prints like</p>

<pre><code>; print "a", a
</code></pre>

<p>at the end of them. I immediately saw the problem with the code.</p>

<p>Is there a way to type less for this purpose?</p>
