title: Can anyone guide me on comma separating this list. I will leave the result wanted in code
body: <pre><code>LMIA = '''[LMIA Late Miami  101 0089        Sun 06 Sep 2015
  LMIA Late Miami 267 8731        Sat 05 Sep 2015
  LMIA Late Miami 178 7110        Fri 04 Sep 2015
  LMIA Late Miami 645 3920        Thu 03 Sep 2015
  LMIA Late Miami 233 9050        Wed 02 Sep 2015
  LMIA Late Miami 982 7556        Tue 01 Sep 2015
  LMIA Late Miami 588 9164        Mon 31 Aug 2015
  LMIA Late Miami 203 6667        Sun 30 Aug 2015
  LMIA Late Miami 013 2265        Sat 29 Aug 2015
  LMIA Late Miami 979 5688        Fri 28 Aug 2015]'''
  for item in LMIA:
      if item == LMIA[-1]:
          print(item + ',')
      if item is not item.isdigit():
          print(item.rstrip(','), end='')
      if item is int:
          print(item, end=',')
      else:
          print(end=',')
  </code></pre>
  
  <p>Here is what i did manually, to much lines to do manually </p>
  
  <pre><code>LMIA = [
      'Tue', 06, 'Oct', 2015, 684, 7695,
      'Mon', 05, 'Oct', 2015, 485, 0736,
      'Sun', 04, 'Oct', 2015, 534, 3967,
      'Sat', 03, 'Oct', 2015, 685, 9397,
      'Fri', 02, 'Oct', 2015, 531, 4950,
      'Thu', 01, 'Oct', 2015, 119, 8119,
      'Wed', 30, 'Sep', 2015, 287, 6712,
      'Tue', 29, 'Sep', 2015, 323, 3634,
      'Mon', 28, 'Sep', 2015, 793, 9046]
  </code></pre>