title: Why does "TypeError: cannot unpack non-iterable int object" occur when trying to unpack tuples?
body: <p>I have this code:</p>
  <pre><code>list1 = [(1, 2), (3, 4, 5), (6, 7, 8, 9), (10, 11)]
  
  for tup_obj in list1:
      if len(tup_obj) == 2:
          for a, b in tup_obj:
              print(a)
              print(b)
      elif len(tup_obj) == 3:
          for a, b, c in tup_obj:
              print(a)
              print(b)
              print(c)
      elif len(tup_obj) == 4:
          for a, b, c, d in tup_obj:
              print(a)
              print(b)
              print(c)
              print(d)
  </code></pre>
  <p>I need to unpack the tuples inside the list</p>
  <pre><code>list1 = [(1, 2), (3, 4, 5), (6, 7, 8, 9), (10, 11)]
  </code></pre>
  <p>It consists of tuples with different numbers of elements.</p>
  <p>I'm trying to take each item in the list (i.e., nothing but the tuple), and once it is selected I want to check how many elements there are inside that tuple (for example, here in first case the number elements inside the tuple is 2).</p>
  <p>This I did with the built-in <code>len</code> functions. So if it's two I'm going to take the value as <code>a, b</code> and if the selected tuple contains 3 or 4 elements it means I'm going to take the variable as <code>a, b, c</code> or <code>a, b, c, d</code>. But once this step is completed it's telling that it cannot unpack non iterable int object. But I don't know why.</p>