Python program to create Pyramid pattern #shorts #python #pythonprogramming

preview_player
Показать описание
In the above program, let's see how the pattern is printed.

First, we get the height of the pyramid rows from the user.
In the first loop, we iterate from i = 0 to i = rows.
The second loop runs from j = 0 to i + 1. In each iteration of this loop, we print i + 1 number of * without a new line. Here, the row number gives the number of * required to be printed on that row. For example, in the 2nd row, we print two *. Similarly, in the 3rd row, we print three *.
Once the inner loop ends, we print a new line and start printing * in a new line.
-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------

____________/Watch My Other Videos\___________________________

♥ What is Support Vector Machine | SVM

♥ What is Python String Formatting

♥ how to install python 3.7 and jupyter notebook

♥ Top 3 Best Programming Languages to Learn in 2021:

♥Basics of Computers - Introduction

♥Learn the Basics of Computer (Shorts)

♥Computer shortcut keys everyone should know 2021

♥ Requirements for windows 11

================================================
-------------------------------------------------------
-------------------------------------------------------
|| Thanks For Watching ||
|| Akistic Tech ||
-------------------------------------------------------
-------------------------------------------------------

Tags,
Python Pattern Programs - Printing Stars '*' in Pyramid Shape
Python Pattern Programs
Python Pattern Programs - Printing Stars '*' in Pyramid Shape - In English
Python Pattern Program - Number Pattern (Printing Numbers in Pyramid Shape)
Python Tutorial for Beginners | Printing Patterns in Python
Printing Stars "*" in Pyramid Shape | Triangle | Python Pattern Program
Pattern printing in python
Pyramid of asterisks program in Python
Рекомендации по теме