Printing Stars '*' in Inverted Right Triangle Shape | Python Pattern Program

preview_player
Показать описание
In this python programs video tutorial you will learn to print stars in right triangle shape in detail.

We used Nested for loops to write this program.

Printing Stars in Right Triangle Shape:

#PythonPrograms #PatternProgram

You can Checkout:
Рекомендации по теме
Комментарии
Автор

Thank you it helped me understand the problem better, I found this other solution:

n = int(input())

for row in range(n, 0, -1):
X = 0
for column in range(0, row):
X = (X * 10) + 1
print(X)

umloiro
Автор

I don't get why to use nested for loop and all to print the star pattern it can be done in a more simplified manner
-n = int(input("Enter a number: "))
for i in range(0, n+1):
print("*" * (n - i))

nareshchoudhary