Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ONLY ANSWER QUESTION 3. ONLY ANSWER QUESTION 3. 3. In the exercise () function, use the rand_list() function from the previous exercise to create a

ONLY ANSWER QUESTION 3.

image text in transcribedimage text in transcribed

ONLY ANSWER QUESTION 3.

3. In the exercise () function, use the rand_list() function from the previous exercise to create a list of nine random three-digit integers. Use two different ways to calculate and print the sum of the list. Also, determine and print the average of the values in the list. 2. Write a Python function named rand_list() that creates and returns a list of random integer values. The function should accept three parameters: the number of list elements to be created, the minimum allowable list value, and the maximum allowable list value. In the exercise2() function, use rand_list() to create a list with a random number of elements (at least 5 but no more than 20) that are all random two-digit integers (i.e., between 10 and 99, inclusive) and then print the list, sort the list, print the sorted list, and finally print the median value in the list

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

Step: 3

blur-text-image

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

4. Who would lead the group?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago