Python Practice › Loop Programs › Program 54
Inverted right triangle of stars
Write a Python program to print an inverted right triangle of stars with 5 rows.
Output
* * * * * * * * * * * * * * *
Approach
- Count rows down from 5 to 1.
Solution
for i in range(5, 0, -1): print("* " * i)Output
* * * * * * * * * * * * * * *
Learn the concept
New to this topic? Read the lesson, then come back.