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

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
Get step-by-step solutions from verified subject matter experts
