def Bernoulli(name, p, succ=1, fail=0):

    return rv(name, BernoulliDistribution, p, succ, fail)
Create a Finite Random Variable representing a Bernoulli process.
dataset/ETHPy150Open sympy/sympy/sympy/stats/frv_types.py/Bernoulli