def myComb(n, p):
    """
    C(n, p), polyfill for python < 3.7. For higher python version, math.comb should be better.

    Parameters
    ----------
    n, p : int

    Returns
    -------
    int
        C(n, p)

    """
    res = 1
    for i in range(p):
        res *= (n - i)
    for i in range(p):
        res = res // (i + 1)
    return res