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)...



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).




Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here