def remove_duplicates(list1):
    """
    Eliminate duplicates in a sorted list.

    Returns a new sorted list with the same elements in list1, but
    with no duplicates.

    This function can be iterative.
    """
    if len(list1) == 0:
        return list1
    result = []
    lead_list = list1
    for index in range(1, len(lead_list)):
        if lead_list[index - 1] == lead_list[index]:
            continue
        else:
            if lead_list[index] != lead_list[-1]:
                result.append(lead_list[index - 1])
            else:
                result.append(lead_list[index - 1])
                result.append(lead_list[index])
    if len(result) == 0:
        result.append(list1[-1])
    return result