Python Store dynamic data
<p><br>
I don't know if the heading makes sense... but this is what I am trying to do using list</p>

<pre><code>&gt;&gt;&gt; x = 5
&gt;&gt;&gt; l = [x]
&gt;&gt;&gt; l
[5]
&gt;&gt;&gt; x = 6
&gt;&gt;&gt; l
[5] # I want l to automatically get updated and wish to see [6]
&gt;&gt;&gt; 
</code></pre>

<p>The same happens with dict, tuple. Is there a python object that can store the dynamic value of variable?</p>

<p>Thanks,</p>
