Displaying pyramid pattern using python

Srivatsan
Sep 6, 2021

Hello everyone.In this session we will talk about how to print a pyramid pattern using python.It is just a simple program,The important thing is logic.Pyramid structure gradually increases from top to bottom.For example take a group of star and place one star then place another two stars below and continue keeping them consecutively,Then you will notice the structure of pyramid.I think you will get my point after going through the below program.

From the above, The number of stars increases gradually along with decrease in space given before the stars .From the below output you will understand the concept and logic behind the program

I hope that all are clear with this program.

Thank you!! we will stick with the next program

--

--