title: For loop only printing out last element in Python
body: <p>I have a problem with the for loop. For some reason when I execute the loop it only prints out 1 element of the for loop. This is the data I have</p>
  <pre><code>lucidData = [['Dupable', '246', 'Mercedes', '25200'], ['Qilani', '240', 'Kanna', '21000'], ['MihKyle', '250', 'Mihile', '34750'], ['Goobtella', '245', 'Kanna', '27000'], ['Gosenka', '240', 'Buccaneer', '25762'], ['Eeldu', '244', 'Pathfinder', '33359'], ['YoungHanny', '249', 'Dual Blade', '36000'], ['Yumiikko', '248', 'Kanna', '32721'], ['lRollingDeep', '247', 'Adele', '29201'], ['LordPrime', '247', 'Kaiser', '33000'], ['GoiabaSama', '255', 'Demon Avenger', '964310'], ['GordoChorizo', '246', 'Dual Blade', '30387'], ['ScarletReyne', '251', 'Ark', '29651'], ['StupidGameu', '251', 'Demon Avenger', '31674'], ['TURTLESmrff', '242', 'Pathfinder', '2400'], ['Sleepybearrx', '240', 'IL Mage', '27953'], ['Wremy', '251', 'Hero', '35773'], ['woele', '245', 'Phantom', '33578'], ['Codé002', '240', 'Kanna', '22219'], ['FullSword', '250', 'Adele', '29548'], ['Ch0senAlpha', '242', 'Hero', '28521'], ['MeserMule', '254', 'Kanna', '33974'], ['KanaoSayo', '245', 'Kanna', '23000']]
  </code></pre>
  <p>and when I use this for loop to try and get rid of the quotes and brackets:</p>
  <pre><code>def formatting(data):
    for i in range(len(data)):
      datas = ', '.join(data[i])
    return datas
  
  print(formating(lucidData))
  </code></pre>
  <p>I get only:</p>
  <pre><code>KanaoSayo, 245, Kanna, 23000
  </code></pre>
  <p>Which is the last element in the list of list and I don't know why or how to fix this.</p>
  <p>My expected output is</p>
  <pre><code>Dupable, 246, Mercedes, 25200
  Quilani, 240, Kanna, 21000
  ...
  KanaoSayo, 245, Kanna, 23000
  </code></pre>