title: How can I make variable numbers horizontally and make a list?
body: <p>So I have that <code>a</code> is </p>
  
  <pre><code>['2019313251', 'V', '11', '58', 'am']   
  ['2017393939', 'V', '12', '03']  
  ['2020123456', 'V', '13', '24'] 
  ['1997031312', 'V', '13', '25']
  ['2013313990', 'V', '13', '32', 'pm']
  ['2018423519', 'V', '14', '10', 'pm'] 
  ['2019313251', 'E', '2', '58', 'pm'] 
  ['2017393939', 'V', '3', '03']  
  ['2017393939', 'E', '3', '04'] 
  ['2019313251', 'E', '5', '48', 'pm']  
  ['2017313882', 'E', '17', '54']
  </code></pre>
  
  <p>and I want to get the values of <code>a[2]</code> for <code>'V'</code> and make a list with it. </p>
  
  <pre><code>if a[1] == "V":
      b = a[2]
      b = b.strip().split(' ')
  </code></pre>
  
  <p>I tried this code but the ouput is </p>
  
  <pre><code>['11']   
  ['12']
  ['13'] 
  ... 
  </code></pre>
  
  <p>and so on. How can I make it horizontally and make a list to get a result like <code>['11', '12', '13', ...]</code></p>