How can I achieve this in python
<p>Here's some code:</p>

<pre><code>li=[1,2,3]
def change(l):
    l[2]=10
change(li)
print li
[1, 2, 10]
</code></pre>

<p>But I want this:</p>

<pre><code>li=[1,2,3]
def change(l):
    l=[1,2,10]
change(li)
print li
[1,2,3]
</code></pre>

<p>For some reason,I have to change whole list in method,how can I achieve this?Anything wrong or my mistake?</p>
