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