Does the id() function in python create new values?
<p>I was just playing around with the id() function &amp; noticed that if you pass a value that you haven't assigned to a variable yet, instead of giving an error it returns a memory address.
So does the id() function assign that value to an empty memory location?</p>

<pre><code>&gt;&gt;&gt; print id(18)
14569728
&gt;&gt;&gt; b = 18
&gt;&gt;&gt; print id(b)
14569728
&gt;&gt;&gt; print id('check')
140297315282112
&gt;&gt;&gt; c = 'check'
&gt;&gt;&gt; print id(c)
140297315282112
</code></pre>
