`median_high()`

function is from Standard statistics Library of Python programming language. The basic purpose of this function is to calculate the high median of given numeric data. The given data will always be in the form of sequence or iterator of Python Programming Language. The high median is always a member of the numeric data set.

When the number of data values is odd, the middle value of data set is returned and where the number of the data value is even, the larger of the two middle values is returned.

The high median is also used to locate the central tendency of numeric data.

The high median is also used to locate the central tendency of numeric data.

## Syntax of `median_high()`

Function in Python

The syntax of high

`median_high()`

function in Python is as follow:`statistics.median_high(data)`

## Parameters of `median_high()`

Function in Python

`data`

– This parameter can be any sequence or iterator (lists, tuples)Note: If data is empty,

`median_high()`

function raises a `StatisticsError`

## Return Value of `median_high()`

in Python

Return value of

`median_high()`

is a floating point number after calculating high median of given data in iterator (lists, tuples)

`median_high()`

Function Examples in Python

1 2 3 4 5 6 | # import statistics library import statistics print(statistics.median_high([1,3,5,7,9])) print(statistics.median_high([2,4,6,8,10,12])) |

Output of high

`median_high()`

Function in Python

5

8