(hand)
return hand
:param hand: list - cards in hand.
    :return: list - hand with Jacks (if present) value doubled.
def maybe_double_last(hand):
    """

    :param hand: list - cards in hand.
    :return: list - hand with Jacks (if present) value doubled.
    """

    if hand[-1] == 11:
        hand[-1] *= 2
    return hand
def maybe_double_last ( hand ) : if hand [ - 1 ] == 11 : hand [ - 1 ] *= 2 return hand