0

Need help writing a program in python

how would I write a program that takes in 3 separate numbers, finds the median and then doubles the median to give the numbers as the output but shows the doubled median instead of the original number?

1st Aug 2018, 4:34 PM
Teen Inspired
Teen Inspired - avatar
1 Answer
0
If you know that you are only taking 3 inputs you can do a manual sort using if,elif,else to find the middle value. Update the array with the doubled value and print.
1st Aug 2018, 4:49 PM
JME