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