Practice Makes Perfect Median Help!


#1

Please help really stuck!!!


#2

Check you computation of mid2.


#3

I what way, and what part


#4

Where is the logic in subtracting 3?


#5

I got rid of it, I don’t know why I did it, but still it didn’t work


#6

Did you try subtracting 1 where you were previously subtracting 3?


#7

yeah it said it answers 0.5 instead of 4


#8

To get an average, we add the values then divide by the number of values.

float(mid1 + mid2) / 2

#9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.