title: How to write output data into pdf?
body: <p>I can't find a way how to write output data (lists or function return) into pdf in python. This is my simple code. I want to write the <code>i</code> of data list line by line in pdf. But the output shows only <code>[1,2,3,4,5,6]</code>.
  Which pdf module is would be better for me to use?</p>
  
  <pre><code>import fpdf
  
  data=[1,2,3,4,5,6]
  
  pdf = fpdf.FPDF(format='letter')
  pdf.add_page()
  pdf.set_font("Arial", size=12)
  
  for i in str(data):
      pdf.write(5,i)
  pdf.output("testings.pdf")
  </code></pre>