How can I print the name of variables in Python? : <p>I am trying to define the function which returns the name of variables.</p>

<pre><code>&gt;&gt;&gt; def function(x):
...     return(str(x))
... 
&gt;&gt;&gt; a = 1
&gt;&gt;&gt; function(a)
'1'
</code></pre>

<p>I want to define the following function. How can I define it?</p>

<pre><code>&gt;&gt;&gt; a = 1
&gt;&gt;&gt; function(a)
a = 1
</code></pre>
