(hand)
return is_same
:param hand: list - cards in hand.
    :return: bool - if approximate average equals to the `true average`.
def approx_average_is_average(hand):
    """

    :param hand: list - cards in hand.
    :return: bool - if approximate average equals to the `true average`.
    """

    real_average = card_average(hand)
    if card_average([hand[0], hand[-1]]) == real_average:
        is_same = True
    elif hand[len(hand) // 2] == real_average:
        is_same = True
    else:
        is_same = False
    return is_same
def approx_average_is_average ( hand ) : real_average = card_average ( hand ) if card_average ( [ hand [ 0 ] , hand [ - 1 ] ] ) == real_average : is_same = True elif hand [ len ( hand ) // 2 ] == real_average : is_same = True else : is_same = False return is_same