Question
Write a python3.x script that calculates median (the middle value) from the list that contains a given number of random integers between 50 and 100
Write a python3.x script that calculates median (the middle value) from the list that contains a given number of random integers between 50 and 100 using list methods. The number of random integers will be provided by a user input. (Number of random integers in the sense of:- tell the program how many random numbers to generate, which are then randomly generated). * Note once again, the python program must generate the number between 50 and 100 upon request by the user how many integers. Thanks
The script should print out the list before being sorted, after being sorted, and median. Save the script as
list before sorted: [45, 54, 67, 58, 67, 98, 59, 90] list after sorted: [45, 54, 58, 59, 67, 67, 90, 98] Median of list: 63.0
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