Question: Below is the code Write a program that randomly generates 100 integer values in the range 1 to 50 . Your program should display the

 Below is the code Write a program that randomly generates 100
Below is the code
integer values in the range 1 to 50 . Your program should

Write a program that randomly generates 100 integer values in the range 1 to 50 . Your program should display the numbers of the numbers generated occurred in the range 1-10, 11-20, etc. For example, your program should display: I have generated 100 random numbers between 1 and 50 . The count in the following ranges is: 1..10: 20 11..20: 25 21.. 30: 12 31. 40: 23 41..50: 20 Hint. Use a list or dictionary to hold the counts, one item for each range. You can generate a list of random numbers using list comprehension. import random

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 Databases Questions!