Question: 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

 2. Write a Python function named rand_list() that creates and returns

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

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!