title: python3 for loop dictionary
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13371279/whats-another-way-to-write-python3-zip">whats another way to write python3 zip</a>  </p>
  </blockquote>
  
  
  
  <p>whats a better way to write these things I was introduced to these codes but I am not used to seeing them these ways:</p>
  
  <pre><code>(alla,allc,) = (set(s) for s in zip(*animaldictionary.keys())) 
  </code></pre>
  
  how else can you write this
  
  <pre><code>print('\n'.join(['\t'.join((c,str(sum(animaldictionary.get(ac,0) 
  for a in alla 
       for ac in ((a,c,),))//12)))
               for c in sorted(allc)]))
  </code></pre>