from typing import List


def median(lst: List[int]) -> float:
    """Takes an ordered list of numbers, and returns the median of the numbers.
    If the list has an even number of values, it computes the mean of the two
    center values.

    Args:
        lst - an ordered list of numbers

    Returns:
        the median of the passed in list
    """

    lenlst = len(lst)
    counter = lenlst / 2
    counter = int(counter)
    if lenlst % 2 == 0:
        return (lst[counter - 1] + lst[counter]) / 2
    else:
        return lst[counter]