title: Can you change a variable inside a dictionary during runtime
body: <p>I have a dictionary which stores a list in it and that list has a type of objects in it, which have some member functions. </p>
  
  <p>Then I have a variable which I want to increment as starts at 0, which calls the first position in the list, so it looks like this:</p>
  
  <pre><code>index = 0
  myDict = {
    "test" : myList[index].foo
  }
  
  myDict["test"]()
  index += 1
  myDict["test"]()
  </code></pre>
  
  <p>What I want to do is that it calls the second place in the list. But the index in the dict seems to be immutable, because it still is referring to the index <code>0</code> in the list. </p>
  
  <p>Is there any way to make this work or do I have to come up with an other solution?</p>