title: Distribute an integer amount by a set of slots as evenly as possible
body: <p>I am trying to figure an elegant way of implementing the distribution of an amount into a given set of slots in python.</p>
  
  <p>For example:</p>
  
  <p>7 oranges distributed onto 4 plates would return:</p>
  
  <pre><code>[2, 2, 2, 1]
  </code></pre>
  
  <p>10 oranges across 4 plates would be:</p>
  
  <pre><code>[3, 3, 2, 2]
  </code></pre>