title: Replacing elements between lists in python
body: <p>I am currently trying to replace elements in a 2D list with elements in another list, so as to implement a game I am making in python. Here is what I have so far:</p>
  
  <pre><code>listA = [1, 3, 5]
  listB = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
  
  for a in range(len(listA)):
      alpha = (a/3) #number of rows in listB
      beta = (a/3) #number of columns in listB
      listB[alpha][beta] = 123
  </code></pre>
  
  <p>When I do this, I get </p>
  
  <pre><code>[[123, 123, 123], [0, 0, 0], [0, 0, 0]] 
  </code></pre>
  
  <p>instead of what I want given the parameters,</p>
  
  <pre><code>[[0, 123, 0], [123, 0, 123], [0, 0, 0]]
  </code></pre>
  
  <p>Am I doing something wrong?</p>