Due Friday before lecture
Create a program called median.py in VSCode. Write this program to input a series of integers from the user and then output the MEDIAN integer. Stop inputting integers when the user enters a negative number. The user can enter as many integers as they wish, and you can assume they'll always enter at least one positive integer to start.
MEDIAN REMINDER: If the list of numbers is even in length, the median is the average of the two middle numbers. If the list is odd in length, it is just the middle number.
HINT: use the sort() function on your list to put them in order when ready.
int: 234 int: 6 int: 2 int: 57 int: 57 int: 7 int: 2 int: 1 int: 7 int: 8 int: 65 int: 2 int: 65 int: 72 int: -1 [1, 2, 2, 2, 6, 7, 7, 8, 57, 57, 65, 65, 72, 234] median = 7.5
Submit your median.py to the online submission system under hw7-median.
Your output must exactly match the above.
submit -c=sd211 -p=hw7-median median.py