title: Iterate in a list that contain tuples and int in Python
body: <p>So I have created this list :</p>
  
  <pre><code>l = [(1,2,3),(4,5),6]
  </code></pre>
  
  <p>But when I do this :</p>
  
  <pre><code>for i in l:
      print (i[0])
  </code></pre>
  
  <p>It send me this error message : </p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 2, in &lt;module&gt;
  TypeError: object of type 'int' has no len()
  </code></pre>
  
  <p>So I want to know if you there is a method to print the number if it's an <code>int</code> or the first element if it is a <code>tuple</code>...</p>
  
  <p>I hope I made it clear for you, do not hesitate to ask if you don't understand.</p>
  
  <p>Thank you in advance.</p>