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

# Probability mass function

**sachin70**#1

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.