title: Write headers to excel file in python
body: <p>How do you loop through each element in a list and put it as excel header? Let me know if there is a duplicate question. I couldnt find it so far.</p>
  
  <pre><code>row=0
  col=0
  
  j = 0
  title = ['No.', 'Hue', 'Saturation', 'Value',
           'Lightness', 'AComponent', 'BComponent',
           'Blue Channel', 'Green Channel', 'Red Channel']
  
  for i in title[0:len(title)]:
      worksheet.write(row + 1, col + j, 'title[%i]', bold)
      j += 1
  </code></pre>
  
  <p>I wanted to do something like the text in red
  <a href="https://i.stack.imgur.com/AzNJj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AzNJj.png" alt="enter image description here"></a></p>