from preliz import Bernoulli, style
style.use('preliz-doc')
for p in [0, 0.5, 0.8]:
    Bernoulli(p).plot_pdf()