Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
Below is the code
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Speak clearly and distinctly with moderate energy

Answered: 1 week ago

Question

4 How can you create a better online image for yourself?

Answered: 1 week ago