• + 0 comments
    import fractions
    probM = fractions.Fraction(1,2) #prob of reading M
    probE = fractions.Fraction(3,5) #prob of reading E
    probB = fractions.Fraction(1,5) #prob of reading both
    
    print(probM + probE - probB)