Question: Write a program that generates 100 random numbers between 1 and 10. The program should store the frequency of each number generated in a dictionary
Write a program that generates 100 random numbers between 1 and 10. The program should store the frequency of each number generated in a dictionary with the number as the key and the amount of times it has occurred as the value. For example, if the program generates the number 6 a total of 11 times, the dictionary will contain a key of 6 with an associated value of 11. Once all of the numbers have been generated, display information about the frequency of each number.
Step by Step Solution
3.54 Rating (154 Votes )
There are 3 Steps involved in it
here is a Python program to generate 100 random numbers between 1 and 10 and store the frequency of ... View full answer
Get step-by-step solutions from verified subject matter experts
