def Coin(name, p=S.Half):
    return rv(name, BernoulliDistribution, p, 'H', 'T')
Create a Finite Random Variable representing a Coin toss.
dataset/ETHPy150Open sympy/sympy/sympy/stats/frv_types.py/Coin