def is_full_house(dice):                      # ➊
    """dice is a list of five integers"""     # ➋ 
    diceset = set(dice)                       # ➌
    if len(diceset) == 2:                     # ➍
        for number in diceset:                # ➎
            if dice.count(number) in (2,3):   # ➏
                return True                   # ➐
    return False                              # ➑

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