title: How can I add a string to every value of a list, and then make a value of that string count up?
body: <p>I am trying to print values in a list and add strings. I want a value (colx in the string I'm adding) to count up from 0 to the last value of the list.</p>
  
  <pre><code>#CODE
  list1 = ['dog' , 'cat', 'pig', 'cow'] 
  for elem in list1:
        print(elem + ' = sheet.cell(r,colx).value') 
  </code></pre>
  
  <p>Current Output:</p>
  
  <pre><code>dog = sheet.cell(r,colx).value
  cat = sheet.cell(r,colx).value
  pig = sheet.cell(r,colx).value
  cow = sheet.cell(r,colx).value
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code>dog = sheet.cell(r,0).value
  cat = sheet.cell(r,1).value
  pig = sheet.cell(r,2).value
  cow = sheet.cell(r,3).value
  </code></pre>