Question
Your task in this programming assignment is to write a Python program that generates a list of random integers, such that both its length and
Your task in this programming assignment is to write a Python program that generates a list of random integers, such that both its length and the minimum and maximum values added to the list are provided by the user. Subsequently, display the list, followed by statistics about the list. Here's output of a sample run (user input is shown in bold): How many random integers would you like to add to the list? 10 What would you like the minimum value to be? -50 What would you like the maximum value to be? 50 The list: [-46, 43, 34, 48, 7, 31, 36, -11, 39, -9] The mean of the list is 17.2. The median of the list is 32.5. The range of the list is 94.
!!!MUST BE DONE IN PYTHON 2.7!!!
########################################################################################### # Name: # Date: # Description: ###########################################################################################
# function that prompts the user for a list size, minimum and maximum values, creates the list, and returns it # you must use the list functions discussed in class to add integers to the list
# function that receives the list as a parameter, and calculates and returns the mean
# function that receives the list as a parameter, and calculates and returns the median
# function that receives the list as a parameter, and calculates and returns the range
############################################### # MAIN PART OF THE PROGRAM # implement the main part of your program below # comments have been added to assist you ############################################### # create the list nums = fillList()
# display the list # there is no need to write/call your own function for this part
# calculate and display the mean
# calculate and display the median
# calculate and display the range
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started