Get the answers you need at Westonci.ca, where our expert community is always ready to help with accurate information. Join our platform to connect with experts ready to provide detailed answers to your questions in various areas. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

Create a function that prompts the user for the maximum random number to generate. Ensure that the value is between 100 and 500 Return the value Create a function that prompts the user for how many numbers to generate. Ensure that the value is between 20 and 60 Return the value * Optional Bonus * Instead of creating two different functions, you can create a single function, but it must handle the requirements of each function Create a function that will print out summary data from a list. The list will be passed in as a parameter and the function should: Use a loop to calculate the total and average. Print the total (calculated within the loop) Print the average (calculated by dividing the total by the number of items in the list) Print the median (the median is the list element in the exact middle of the sorted list) Do NOT use the sum, mean, or median functions within Python, you must calculate these with your own code Create a main function. Inside the main function you will: initialize an empty list Use a loop to generate X integers that are randomly generated from 1 to Y and add them to the list. X is the value returned from the second function you created Y is value returned from the first function you created Print the elements in the list Sort the list using the sort() function Print the elements in the sorted list Call your third function that prints the summary data. You main function should run when the module (file) is ran. Refer to the example of the output below. Your numbers will differ since the random numbers generated will be different every time you run the program, but your spacing should look the same. Output Example:

Create A Function That Prompts The User For The Maximum Random Number To Generate Ensure That The Value Is Between 100 And 500 Return The Value Create A Functio class=

Sagot :

Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Westonci.ca is your go-to source for reliable answers. Return soon for more expert insights.