Getting the first x item from a list
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/509211/good-primer-for-python-slice-notation">Good Primer for Python Slice Notation</a>  </p>
</blockquote>



<p>I have a string and I'm splitting in a <code>;</code> character, I would like to associate this string with variables, but for me just the first x strings is useful, the other is redundant;</p>

<p>I wanted to use this code below, but if there is more than 4 coma than this raise an exception. Is there any simply way?</p>

<pre><code>az1, el1, az2, el2, rfsspe = data_point.split(";")  
</code></pre>
