(card)
return value
:param card: str - given card.
    :return: int - value of a given card (J, Q, K = 10, numerical value otherwise).
def value_of_card(card):
    """

    :param card: str - given card.
    :return: int - value of a given card (J, Q, K = 10, numerical value otherwise).
    """

    if card in ('J', 'Q', 'K'):
        value = 10
    else:
        value = int(card)
    return value
def value_of_card ( card ) : if card in ( 'J' , 'Q' , 'K' ) : value = 10 else : value = int ( card ) return value