def is_three_of_a_kind(dice):              # ➊
    """dice is a list of five integers"""  # ➋ 
    for number in dice:                    # ➌
        if dice.count(number) >= 3:        # ➍
            return True                    # ➎
    return False                           # ➏

if __name__ == "__main__":
    # tests   
    print("testing...")
    assert is_three_of_a_kind([1,1,2,2,2]) == True # ➐
    assert is_three_of_a_kind([1,1,2,2,2]) == True
    assert is_three_of_a_kind([1,1,2,2,2]) == True
    assert is_three_of_a_kind([1,4,4,4,4]) == True
    assert is_three_of_a_kind([5,5,5,5,5]) == True
    assert is_three_of_a_kind([1,2,3,4,5]) == False
    assert is_three_of_a_kind([2,3,4,5,6]) == False
    assert is_three_of_a_kind([1,1,2,2,5]) == False
    assert is_three_of_a_kind([6,1,4,6,1]) == False
    assert is_three_of_a_kind([6,1,1,1,2]) == True
    print("all tests passed")    # ➑