python_data_scien/poc1/min_porj_4(Yahtzee).py
def score(hand):
    """
    Compute the maximal score for a Yahtzee hand according to the
    upper section of the Yahtzee score card.

    hand: full yahtzee hand

    Returns an integer score 
    """
    max_score = 0
    sorted_hand_list = sorted(list(set(hand)))
    for i_mem in sorted_hand_list:
        temp_score = 0
        for j_mem in list(hand):
            if i_mem == j_mem:
                temp_score += i_mem
        if temp_score > max_score:
            max_score = temp_score
    return max_score

    Compute the maximal score for a Yahtzee hand according to the
    upper section of the Yahtzee score card.

    hand: full yahtzee hand

    Returns an integer score 
    
Compute the maximal score for a Yahtzee hand according to the
upper section of the Yahtzee score card.

full yahtzee hand

Returns an integer score
Compute the maximal score for a Yahtzee hand according to the upper section of the Yahtzee score card . full yahtzee hand Returns an integer score
def score(hand):
    max_score = 0
    sorted_hand_list = sorted(list(set(hand)))
    for i_mem in sorted_hand_list:
        temp_score = 0
        for j_mem in list(hand):
            if i_mem == j_mem:
                temp_score += i_mem
        if temp_score > max_score:
            max_score = temp_score
    return max_score
def score ( hand ) : max_score = 0 sorted_hand_list = sorted ( list ( set ( hand ) ) ) for i_mem in sorted_hand_list : temp_score = 0 for j_mem in list ( hand ) : if i_mem == j_mem : temp_score += i_mem if temp_score > max_score : max_score = temp_score return max_score
Compute the maximal score for a Yahtzee hand according to the
upper section of the Yahtzee score card.
Compute the maximal score for a Yahtzee hand according to the upper section of the Yahtzee score card .
"""
    Compute the maximal score for a Yahtzee hand according to the
    upper section of the Yahtzee score card.

    hand: full yahtzee hand

    Returns an integer score 
    """
hand