Welcome to Westonci.ca, the Q&A platform where your questions are met with detailed answers from experienced experts. Join our platform to connect with experts ready to provide precise answers to your questions in various areas. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

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=