Rearranging the conditional formula gives the multiplication rule:
Return P(A∩B)P(A \cap B)P(A∩B).
solve(4/52, 3/51) -> 0.004524886877828055 # both cards aces
Sign in to write and run your own code.
solve(...)