I am trying to figure an elegant way of implementing the distribution of an amount into a given set of slots in python. For example: 7 oranges distributed onto 4 plates would return: [2, 2, 2, 1] 10 oranges across 4 plates would be: [3, 3, 2, 2] Continue reading...