1) Create a list of 100 lists, with each of the outer lists containing an empty list.
2) Do this 500 times: (a) randomly select one of the inner lists, (b) add a random number to the inner list.
3) Print the minimum, maximum, and average number of items inside the inner lists
4) Write a two-sentence comment describing how (3) relates to the pigeonhole principle (https://en.wikipedia.org/wiki/Pigeonhole_principle).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here