title: proper spacing in a table in python
body: <pre><code>Animal ID Location1 Location2
  a01    2       1
  a03    4       4
  a02    0       3
   ================================================================================================================
  </code></pre>
  
  <p>so this is the table that i have using the following code:</p>
  
  <pre><code>print("Animal ID","Location1","Location2")       
      for k, v in d.items():
          print(k, end='\t')
          print(v.count('s1'), end='\t')
          print(v.count('s2'))
  print("============================================================================================================")
  </code></pre>
  
  <p>but as one can see the table is not spaced out properly,how can i fix it to get a table something like this:</p>
  
  <pre><code>Animal Id Station 1 Station 2 
  a01          2         1 
  a02          0         3 
  a03          4         4 
  ==============================================
  </code></pre>
  
  <p>This is the data is anybody wanted to know. It is in the format animal id:data:location</p>
  
  <pre><code>a01:01-24-2011:s1 
  a03:01-24-2011:s2 
  a02:01-24-2011:s2 
  a03:02-02-2011:s2 
  a03:03-02-2011:s1 
  a02:04-19-2011:s2 
  a01:05-14-2011:s2 
  a02:06-11-2011:s2 
  a03:07-12-2011:s1 
  a01:08-19-2011:s1 
  a03:09-19-2011:s1 
  a03:10-19-2011:s2 
  a03:11-19-2011:s1 
  a03:12-19-2011:s2  
  </code></pre>