Probability mass function

How do we plot a probability mass function graph in python?
i am going through the introduction to data science course of analytics Vidhya and here itis only explained what are Bernoulli trials and probability mass function but I want to know how do we draw that graph in python.
thanks

Hi @sachin70,

It is basically the probability distribution for a continuous variable. You can simply create a random variable and plot a probability distribution for the same.

The following two links should help: Link1, Link2