Question: Write a Python program that will calculate the distribution of random number. Lists and Dictionaries Write a Python program that will show the distribution of

Write a Python program that will calculate the distribution of random number.
Lists and Dictionaries Write a Python program that will show the distribution of randomly generated integers. Your program should create a list containing 1,000 randomly generated integers between 1 and 100. You are to convert this list to a dictionary where the keys are the integers 1 to 100 and the values are the number of occurrence of that integer in the list. Once the dictionary has been created, write code that will allow a user to query the dictionary. Ask the user to enter an integer between 1 and 100 and output the number of times that integer was generated. Continue asking the user until a -1 is entered. Lastly, print out the maximum, minimum, mean, and median of the integer occurrences.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!