Python Pattern 04 | Tutorial in Hindi | Diamond '*' Star Pattern| Easy to Understand

Insight Educator
Youtube
Related Topic
:- Python Data Analysis

In this video we will learn how to make equilateral triangle pattern in python. Learn Python programming for a career development in Programming. In this video we will see : - How to print a diamond star triangle pattern using Python. - Understanding the basics of building a pattern. The steps involved are: -This Pattern consists of two parts, upper pyramid and lower pyramid. - First step will be we create the upper pyramid. - Inside upper pyramid we create a outer loop which controls the number of steps. - Then inside there will be two loops one is for creating spaces and second is for printing stars. - The number of spaces will decrease and number of stars will increase in each step. - Also print() is used to move to next line. - In second step we create the lower pyramid. - Inside lower pyramid we create a outer loop which controls the number of steps. - Then inside there will be two loops one is for creating spaces and second is for printing stars. - But this time number of spaces will increase and number of stars will decrease in each step.

Comments