title: How to slice a list of tuples in python?
body: <p>Assuming:</p>
  
  <pre><code>L = [(0,'a'), (1,'b'), (2,'c')]
  </code></pre>
  
  <p>How to get the index <code>0</code> of each <code>tuple</code> as the pretended result:</p>
  
  <pre><code>[0, 1, 2]
  </code></pre>
  
  <p>To get that I used <code>python list comprehension</code> and solved the problem:</p>
  
  <pre><code>[num[0] for num in L]
  </code></pre>
  
  <p>Still, it must be a pythonic way to <strong>slice it like</strong> <code>L[:1]</code>, but of course this slincing dont work.</p>
  
  <p>Is there better solution?</p>