Program to construct the pattern

In this program, we will construct the pattern given in the question.

Steps to solve the program
  1. Use for loop in reverse order to print the given pattern.
  2. During iteration multiply each number by “*“.
  3. Print the output.
				
					
for i in range(6,0,-1):
    print(i*"*")
				
			

Output :

				
					******
*****
****
***
**
*
				
			

construct the following pattern

construct the following pattern

Leave a Comment