title: It does print out, but it doesn't write in csv
body: <p>I'm trying to save a table on this website > <a href="https://www.valuewalk.com/2019/01/top-10-most-obese-countries-oecd-who/" rel="nofollow noreferrer">https://www.valuewalk.com/2019/01/top-10-most-obese-countries-oecd-who/</a></p>
  
  <p>It does print out, but it doesn't save in a CSV. Can someone help out giving some advice?</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import csv
  
  
  #Request webpage content
  result = requests.get('https://www.valuewalk.com/2019/01/top-10-most-obese-countries-oecd-who/')
  
  #Save content in var
  src = result.content
  
  #soupactivate
  soup = BeautifulSoup(src,'lxml')
  
  
  #look for table
  tbl = soup.findAll('ol')
  tbl2 = tbl[1]
  
  #Get text out of table
  tbltxt = tbl2.get_text()
  
  #Open CSV
  file = open('obesecountries.csv','w')
  writer = csv.writer(file)
  
  #Put data into csv
  for row in tbltxt:
      writer.writerow(row)
  </code></pre>
  
  <p>I found the HTML table I would like to get out of. I removed the HTML tags.
  It prints out but it doesn't save/write in CSV. </p>