def get_median_of_list(lst):
    """Return the median element of a sorted list"""
    ln = len(lst)
    div_by_2 = int(ln / 2)
    if ln % 2 == 0:
        return (lst[div_by_2 - 1] + lst[div_by_2]) / 2
    return lst[div_by_2]