title: tuple inside list for finding values
body: <p>I am list of tuple as:</p>
  
  <pre><code>mylist = [ (user1, 23, 32), (user1, 23, 34), (user3, 34, 34), (user2, 34, 45), (user1, 45,23),(user2, 56, 56), (user5, 4,4)]
  </code></pre>
  
  <p>I need to find out average time for each user.
  My problem is I dont know how many user are there and values.
  So i cannot do </p>
  
  <pre><code>for item in mylist:
      if item[0] == 'user1':
         new_list.append( ( item1, item2))
  </code></pre>
  
  <p>How to get values likes </p>
  
  <pre><code>user1 = [ (23,32), (23,34), (45,23)]
  user2 = [(34, 45), (56,56)]
  usre3 = [(34,34)]
  </code></pre>
  
  <p>thanks</p>