title: Python: iterating over tuples in list
body: <p>right now I have code that is giving me this output:</p>
  
  <pre>[('KOR', [3, 1, 0]), ('ITA', [1, 0, 0]), ('TPE', [0, 1, 1]), ('CHN', [0, 1, 0]), ('JPN', [0, 1, 0]), ('AUS', [0, 0, 1]), ('GBR', [0, 0, 1]), ('UKR', [0, 0, 1])]</pre>
  
  <p>but it needs to be in this form:</p>
  
  <pre>['KOR 3 1 0', 'ITA 1 0 0', 'TPE 0 1 1', 'CHN 0 1 0', 'JPN 0 1 0', 'AUS 0 0 1', 'GBR 0 0 1', 'UKR 0 0 1']</pre>
  
  <p>How do I change the data into the correct form? I have been trying to iterate through the elements, but the closest I've gotten is</p>
  
  <pre>['KOR', 3, 1, 0, 'ITA', 1, 0, 0, 'TPE', 0, 1, 1, 'CHN', 0, 1, 0, 'JPN', 0, 1, 0, 'AUS', 0, 0, 1, 'GBR', 0, 0, 1, 'UKR', 0, 0, 1]</pre>
  
  <p>by using this code</p>
  
  <pre><code>for item in alist:
      for x in item:
          answer.append(x)
  
  for item in answer:
      if type(item)==str:
          answer2.append(item)
      else:
          for f in item:
              answer2.append(f)
  return answer2
  </code></pre>
  
  <p>Thank you in advance!</p>