Correct way to change a list of strings to list of ints : <pre><code>dict = {0: ['2', '6'], 1: ['2'], 2: ['3']}

print("Original: ")
print(dict)

for key,vals in dict.items():
    vals = [int(s) for s in vals]

print("New: ")
print(dict)
</code></pre>

<p>Output:</p>

<pre><code>Original: 
{0: ['2', '6'], 1: ['2'], 2: ['3']}
New: 
{0: ['2', '6'], 1: ['2'], 2: ['3']}
</code></pre>

<p>I can't figure why the list of values is not changing, I have tried the map() function and it also does not work, any reason why?</p>
