[Tutor] number distribution

Alan Gauld alan.gauld at btinternet.com
Thu Apr 22 18:56:08 CEST 2010

"Bill Jordan" <billjordan121 at yahoo.com> wrote 

> If we have 100 apples, for example, and we need to distrubte 
> the 100 apples randomly in 10 boxes, how can we do this in python?

This sounds like homework, and we don't do homework for you.

But if you'd like to tell us your ideas, or even better show us whatever 
code you have tried to work, we can offer comments and ideas.

In the meantime try looking at the documentation for the "random" 


Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list