Python program to print inverted right-angled triangle using asterisk

Python program to print inverted right-angled triangle using asterisk. Python programming language downward pattern software. In Python, this program will print the pattern downward. In python programs for beginners, this program is used to print the asterisk in reverse, from top to bottom.

lines = 5
for i in range(lines + 1, 0, -1):
for j in range(0, i - 1):
print("*", end=' ')
print(" ")
* * * * * 
* * * * 
* * * 
* * 
*