Someone flips a coin flips times and gets heads heads. Write surprise(heads, flips): if the coin were fair, how surprising is this result? 1 means not surprising at all; near 0 means very surprising. math.comb(n, k), the number of ways to choose k of n, is available.