• + 0 comments

    from math import gcd total_outcomes = 6 * 6 favorable = 0 for i in range(1, 7): for j in range(1, 7): if i + j <= 9: favorable += 1 print(f"{favorable // gcd(favorable,total_outcomes)} / {total_outcomes//gcd(favorable,total_outcomes)}")