Python Program:

- To print half reverse triangle pattern using *

Example:

User Input: 4

Output:

* * * *
* * *
* *
*
rows=int(input("Enter number of rows : "))
for i in range(rows,0,-1):
  for j in range(1,i+1):
    print("* ", end="")
  print("")

Output:

  Enter number of rows : 4
  * * * *
  * * *
  * *
  *
Program
pattern

Main logic :

for i in range(rows,0,-1): #rows : number of rows to print
  for j in range(1,i+1):
    print("* ", end="")
  print("")

You can print any thing in this pattern, just replace your value with *

Concept

Coming Soon !

Quick
Tutorial

Quote

A good decision is based on knowledge and not on numbers.