title: Iterate ONLY first and second list python
body: <p>I want to iterate a list but I want to iterate only first and second elements. For the edge case, if the list has only one or zero element, it should perform iterating one or zero time. </p>
  
  <pre><code>for element in a_list:
      print(element)
  </code></pre>
  
  <p>Use Case</p>
  
  <ul>
  <li><code>a_list = [] -&gt; ''</code></li>
  <li><code>a_list = ['a'] -&gt; 'a'</code></li>
  <li><code>a_list = ['a', 'b'] -&gt; 'ab'</code></li>
  <li><code>a_list = ['a', 'b', 'c'] -&gt; 'ab'</code></li>
  <li><code>a_list = ['a', 'b', 'c', 'd'] -&gt; 'ab'</code></li>
  </ul>