Printing Stars "*" in Triangle Shape | Inverse Pyramid | Python Pattern Program

Опубликовано: 22 Июнь 2026
на канале: Zeeshan_Tutorial
98
8

In this Python Pattern Printing Programs video tutorial you will learn to print star '*' in reverse pyramid shape.

To print star reverse pyramid patterns in Python, you have to use two for loops.in that the first loop is responsible for rows and the second for loop is responsible for columns.In the column we need to concentrate on printing stars and printing space separately.

If you are using Python 2 then if you write this code you will get error because in Python 2 print is not a function and also we cant use end there so you need to use print as statement and instead of end you need to use coma (,) at the end of print statement to get the same output.

in python 3 you write print like this:
print("*',end="")

in python 2 you need to write:
print "*",

Tags Used:

printing stars
pyramid
python design patterns
python patterns
python pattern tutorial
python pattern programs
python pattern program
numbers in pyramid shape
python number pattern
python pattern
number pyramid
python number pyramid
print,pattern
patterns
pyramid of asterisks program in python
pyramid of stars program in python
pyramid of asterisks

#python
#programming
#zeeshan_tutorail