title: Python : Number of items in tuple
body: <p>I've a tuple like this:</p>
  
  <pre><code>('path1', 'path2', ('orig1', 'patch1'), ('orig2', 'patch2'))
  </code></pre>
  
  <p>I want to count the number of items</p>
  
  <p>So, when I run this:</p>
  
  <pre><code>for item in tpl:
      print(item)
      num = len(item)
      print(num)
  </code></pre>
  
  <p>I get :</p>
  
  <pre><code>path1
  5
  path2
  5
  ('orig1', 'patch1')
  2
  ('orig2', 'patch2')
  2
  </code></pre>
  
  <p>My expectation is:</p>
  
  <pre><code>path1
  1
  path2
  1
  ('orig1', 'patch1')
  2
  ('orig2', 'patch2')
  2
  </code></pre>
  
  <h1>Notes:</h1>
  
  <p>Very new Python, I may be taking a totally wrong approach to this thing.</p>