• + 0 comments

    Python code

    from fractions import Fraction
    
    count = 0
    
    def func(count):
        for i in range(1, 7, 1):
            for j in range(1, 7, 1):
                if (i != j) and (i + j) == 6:
                    count += 1
        
        return Fraction(count, 6*6)
    
    
    print(func(count))