title: renaming a variable in loop using Jython
body: <p>I apologize if this question has been answered already, but having programming for only a month or so, I was unable to identify an answer as it relates to my particular circumstance.</p>
  
  <p>I will be taking slices from a list, and as I am taking slices from this list through a loop process, I want a particular variable that is assigned to the slices to change its name during each loop process so that I can randomly choose from these variables. So far I have been unable with my limited knowledge to come up with a way to change this variable's name (even something like x1, x2, x3 would be okay with me).</p>
  
  <pre><code>for i in range(30):
    z = 0
    measureList = [C4, D4, E4]
    z = len(measureList)
    a = measureList[x:x + z]
    x = x + z
  </code></pre>