"Bill Jordan" <billjordan...@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" module.

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to