Question: In this exercise you write a code in Python which asks the user to input numbers, as many as the user likes, and then print
In this exercise you write a code in Python which asks the user to input numbers, as
many as the user likes, and then print the median of those numbers.
Please note that the median is the middle value in a list of numbers sorted in ascending order. If there's an even number of numbers, the median is the average of the two middle numbers.
You are not allowed to use any builtin functions, just normal calculations, loops, and if conditions.
You should submit your code and a short video max minutes explaining the code. A sample video will be uploaded closer to the deadline.
The following is a sample production of the code those in red are typed by the user:
Please input the number:
Do you have more numbers for input? TrueFalse True Please input the number:
Do you have more numbers for input? TrueFalse True Please input the number:
Do you have more numbers for input? TrueFalse True Please input the number:
Do you have more numbers for input? TrueFalse True Please input the number:
Do you have more numbers for input? TrueFalse True Please input the number:
Do you have more numbers for input? TrueFalse True Please input the number:
Do you have more numbers for input? TrueFalse True Please input the number:
Do you have more numbers for input? TrueFalse False The median of your numbers is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
